diff options
Diffstat (limited to 'chapter05/glibc.xml')
-rw-r--r-- | chapter05/glibc.xml | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 9916b4fb2..ecbefa16a 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -43,42 +43,11 @@ <sect2 role="installation"> <title>Installation of Glibc</title> -<!-- The enable-obsolete-rpc should handle this just fine. - <para>In some cases, particularly LFS 7.1, the rpc headers were not - installed properly. Test to see if they are installed in the host system - and install if they are not:</para> - -<screen><userinput remap="pre">if [ ! -r /usr/include/rpc/types.h ]; then - su -c 'mkdir -pv /usr/include/rpc' - su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc' -fi</userinput></screen> ---> - <para>Fix a regression in the package that affects 32-bit architectures:</para> - -<screen><userinput remap="pre">sed -e '/ia32/s/^/1:/' \ - -e '/SSE2/s/^1://' \ - -i sysdeps/i386/i686/multiarch/mempcpy_chk.S</userinput></screen> - <para>The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:</para> <screen><userinput remap="pre">mkdir -v ../glibc-build cd ../glibc-build</userinput></screen> -<!-- - <para>Because Glibc no longer supports i386, its developers say to use the - compiler flag <parameter>-march=i486</parameter> when building it for x86 - machines. There are several ways to accomplish that, but testing shows that - the flag is best placed inside the build variable <quote>CFLAGS</quote>. - Instead of overriding completely what Glibc's internal build system uses - for CFLAGS, append the new flag to the existing contents of CFLAGS by - making use of the special file <filename>configparms</filename>. The - -mtune=native flag is also necessary to reset a reasonable value for -mtune - that is changed when setting -march.</para> - -<screen><userinput remap="configure">case `uname -m` in - i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;; -esac</userinput></screen> ---> <para>Next, prepare Glibc for compilation:</para> |