diff options
Diffstat (limited to 'chapter05/glibc.xml')
-rw-r--r-- | chapter05/glibc.xml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index ecbefa16a..111ba63ec 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -43,6 +43,10 @@ <sect2 role="installation"> <title>Installation of Glibc</title> + <para>First, fix a build problem that affects i386 systems:</para> + +<screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch;</userinput></screen> + <para>The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:</para> @@ -187,7 +191,7 @@ cd ../glibc-build</userinput></screen> functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands:</para> -<screen><userinput>echo 'main(){}' > dummy.c +<screen><userinput>echo 'int main(){}' > dummy.c $LFS_TGT-gcc dummy.c readelf -l a.out | grep ': /tools'</userinput></screen> @@ -196,9 +200,8 @@ readelf -l a.out | grep ': /tools'</userinput></screen> <screen><computeroutput>[Requesting program interpreter: /tools/lib/ld-linux.so.2]</computeroutput></screen> - <para>Note that <filename class="directory">/tools/lib</filename>, or - <filename class="directory">/tools/lib64</filename> for 64-bit machines - appears as the prefix of the dynamic linker.</para> + <para>Note that for 64-bit machines, the interpreter name will be + <filename>/tools/lib64/ld-linux-x86-64.so.2</filename>.</para> <para>If the output is not shown as above or there was no output at all, then something is wrong. Investigate and retrace the steps to find out |