Changeset 76b06f6 for BOOK/temp-system/common/coreutils.xml
- Timestamp:
- Sep 24, 2013, 11:53:17 AM (12 years ago)
- Children:
- 2e9ccbe
- Parents:
- 111b12a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/temp-system/common/coreutils.xml
r111b12a r76b06f6 22 22 <sect2 role="installation"> 23 23 <title>Installation of Coreutils</title> 24 25 <para os="aa">The following command updates the timestamps on the uname 26 and hostname man pages so that the Makefile does not attempt to regenerate 27 them:</para> 28 29 <screen os="ab"><userinput>touch man/uname.1 man/hostname.1</userinput></screen> 24 30 25 31 <para os="ba">Configure can not properly determine how to get free space … … 52 58 </variablelist> 53 59 54 <para os="s1">Apply a sed to allow completion of the build:</para> 60 <!--- Hack for coreutils to build for target executables which can't be ran with the host. --> 61 <para os="h1">Coreutils does not build make-prime-list properly and the build host may not be able to execute the target binary. Build it using the host compiler so it can be ran for the generation of data required for the build.</para> 55 62 56 <screen os="s2"><userinput>cp -v Makefile{,.orig} 57 sed -e 's/^#run_help2man\|^run_help2man/#&/' \ 58 -e 's/^\##run_help2man/run_help2man/' Makefile.orig > Makefile</userinput></screen> 63 <screen os="h2"><userinput>cp -v Makefile{,.orig} 64 sed '/src_make_prime_list/d' Makefile.orig > Makefile 65 depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ 66 gcc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src \ 67 -fdiagnostics-show-option -funit-at-a-time -g -O2 -MT \ 68 src/make-prime-list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o \ 69 src/make-prime-list.c && 70 mv -f $depbase.Tpo $depbase.Po 71 gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 \ 72 -Wl,--as-needed -o src/make-prime-list src/make-prime-list.o</userinput></screen> 73 74 <para os="h3">Remove the building of the hostname man page as it is affected by the previous commands.</para> 75 76 <screen os="h4"><userinput>cp -v Makefile{,.bak} 77 sed -e '/hostname.1/d' Makefile.bak > Makefile</userinput></screen> 78 <!-- End hack --> 59 79 60 80 <para os="bf">Compile the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.