- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/eglibc.xml
r7d97f36 rdf4f9ca 39 39 </note> 40 40 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') 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') 56 45 sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=${LINKER} -o|" \ 57 46 scripts/test-installation.pl 58 47 unset LINKER</userinput></screen> 59 60 <para os="p1">The following patch fixes an issue where EGLIBC will61 improperly handle a condition where an elf binary has missing62 dependencies:</para>63 64 <screen os="p2"><userinput>patch -Np1 -i ../&eglibc-dl_dep_fix-patch;</userinput></screen>65 48 66 49 <para os="b">The EGLIBC build system is self-contained and will install … … 112 95 113 96 <screen os="n"><userinput>cp -v ../eglibc-&eglibc-version;/iconvdata/gconv-modules iconvdata 114 make -k check 2>&1 | tee eglibc-check-log; grep Error eglibc-check-log</userinput></screen>97 make -k check >eglibc-check-log 2>&1 ; grep Error eglibc-check-log</userinput></screen> 115 98 116 99 <para os="o">The EGLIBC test suite is highly dependent on certain functions of
Note:
See TracChangeset
for help on using the changeset viewer.