Changeset 21e442f for BOOK/final-system/common
- Timestamp:
- Apr 16, 2011, 5:47:06 PM (14 years ago)
- Branches:
- clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 9793117
- Parents:
- 6cefbfb (diff), e0ad6ee (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- BOOK/final-system/common
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/binutils.xml
r6cefbfb r21e442f 49 49 50 50 <screen os="ca"><userinput>CC="gcc -isystem /usr/include" \ 51 LDFLAGS="-Wl,-rpath-link,/lib" \52 51 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ 52 ../binutils-&binutils-version;/configure --prefix=/usr \ 53 53 --enable-shared</userinput></screen> 54 54 -
BOOK/final-system/common/cloog-ppl.xml
r6cefbfb r21e442f 30 30 <para os="a">Prepare CLooG-PPL for compilation:</para> 31 31 32 <screen os="b"><userinput>CC="gcc -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/lib" \ 33 ./configure --prefix=/usr --enable-shared --with-gmp \ 32 <screen os="b"><userinput>CC="gcc -isystem /usr/include" \ 33 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ 34 ./configure --prefix=/usr --enable-shared --with-gmp \ 34 35 --with-ppl</userinput></screen> 35 36 -
BOOK/final-system/common/eglibc.xml
r6cefbfb r21e442f 39 39 </note> 40 40 41 <para os="l3">The following sed makes sure that newly built EGLIBC is tested, 42 during make install, instead of the one we previously build:</para> 43 44 <screen os="l4"><userinput>LINKER=$(readelf -l $(file /tools/lib/libc-* | cut -f1 -d:) | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p') 41 <para os="l1">At the end of the installation, the build system will run 42 a sanity test to make sure everything installed properly. This script will 43 attempt to test for a library that is only used in the test suite and is 44 never installed. Prevent the script from testing for this library with the 45 following command:</para> 46 47 <screen os="l2"><userinput>sed -i 's/\(&& $name ne\) "db1"/ & \1 "nss_test1"/' scripts/test-installation.pl</userinput></screen> 48 49 <para os="l3">This same script performs its tests by attempting to compile 50 test programs against certain libraries. However it does not specify the 51 ld.so, and our toolchain is still configured to use the one in /tools. The 52 following set of commands will force the script to use the complete path 53 of the new ld.so that was just installed:</para> 54 55 <screen os="l4"><userinput>LINKER=$(readelf -l /tools/bin/bash | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p') 45 56 sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=${LINKER} -o|" \ 46 57 scripts/test-installation.pl 47 58 unset LINKER</userinput></screen> 59 60 <para os="p1">The following patch fixes an issue where EGLIBC will 61 improperly handle a condition where an elf binary has missing 62 dependencies:</para> 63 64 <screen os="p2"><userinput>patch -Np1 -i ../&eglibc-dl_dep_fix-patch;</userinput></screen> 48 65 49 66 <para os="b">The EGLIBC build system is self-contained and will install … … 95 112 96 113 <screen os="n"><userinput>cp -v ../eglibc-&eglibc-version;/iconvdata/gconv-modules iconvdata 97 make -k check >eglibc-check-log 2>&1; grep Error eglibc-check-log</userinput></screen>114 make -k check 2>&1 | tee eglibc-check-log; grep Error eglibc-check-log</userinput></screen> 98 115 99 116 <para os="o">The EGLIBC test suite is highly dependent on certain functions of -
BOOK/final-system/common/gcc.xml
r6cefbfb r21e442f 41 41 <para os="h">Prepare GCC for compilation:</para> 42 42 43 <screen os="i"><userinput>CC="gcc -Wl,-rpath-link,/lib -isystem /usr/include" \ 44 CXX="g++ -Wl,-rpath-link,/lib -isystem /usr/include" \ 45 ../gcc-&gcc-version;/configure --prefix=/usr \ 43 <screen os="i"><userinput>CC="gcc -isystem /usr/include" \ 44 CXX="g++ -isystem /usr/include" \ 45 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ 46 ../gcc-&gcc-version;/configure --prefix=/usr \ 46 47 --libexecdir=/usr/lib --enable-shared --enable-threads=posix \ 47 48 --enable-__cxa_atexit --enable-c99 --enable-long-long \ -
BOOK/final-system/common/gmp.xml
r6cefbfb r21e442f 49 49 50 50 <screen os="b"><userinput>CPPFLAGS=-fexceptions CC="gcc -isystem /usr/include" \ 51 CXX="g++ -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/lib" \ 52 ./configure --prefix=/usr --enable-cxx --enable-mpbsd</userinput></screen> 51 CXX="g++ -isystem /usr/include" \ 52 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ 53 ./configure --prefix=/usr --enable-cxx --enable-mpbsd</userinput></screen> 53 54 54 55 <para os="c">Compile the package:</para> -
BOOK/final-system/common/mpc.xml
r6cefbfb r21e442f 29 29 30 30 <screen os="b"><userinput>CC="gcc -isystem /usr/include" \ 31 LDFLAGS="-Wl,-rpath-link,/ lib" EGREP="grep -E" \32 ./configure --prefix=/usr</userinput></screen>31 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ 32 EGREP="grep -E" ./configure --prefix=/usr</userinput></screen> 33 33 34 34 <para os="c">Compile the package:</para> -
BOOK/final-system/common/mpfr.xml
r6cefbfb r21e442f 28 28 <para os="a">Prepare MPFR for compilation:</para> 29 29 30 <screen os="b"><userinput>CC="gcc -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/lib" \ 31 ./configure --prefix=/usr --enable-shared \ 32 --with-gmp=/usr</userinput></screen> 30 <screen os="b"><userinput>CC="gcc -isystem /usr/include" \ 31 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ 32 ./configure --prefix=/usr --enable-shared \ 33 --with-gmp=/usr</userinput></screen> 33 34 34 35 <para os="c">Compile the package:</para> -
BOOK/final-system/common/ppl.xml
r6cefbfb r21e442f 30 30 31 31 <screen os="b"><userinput>CPPFLAGS=-fexceptions CC="gcc -isystem /usr/include" \ 32 33 LDFLAGS="-Wl,-rpath-link,/lib" \34 35 32 CXX="g++ -isystem /usr/include" \ 33 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ 34 ./configure --prefix=/usr --enable-shared \ 35 --disable-optimization</userinput></screen> 36 36 37 37 <para os="c">Compile the package:</para> -
BOOK/final-system/common/zlib.xml
r6cefbfb r21e442f 28 28 <para os="a">Prepare Zlib for compilation:</para> 29 29 30 <screen os="b"><userinput>CC="gcc -isystem /usr/include" CXX="g++ -isystem /usr/include" \ 31 LDFLAGS="-Wl,-rpath-link,/lib" ./configure --prefix=/usr</userinput></screen> 30 <screen os="b"><userinput>CC="gcc -isystem /usr/include" \ 31 CXX="g++ -isystem /usr/include" \ 32 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ 33 ./configure --prefix=/usr</userinput></screen> 32 34 33 35 <para os="c">Compile the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.