Changeset f77b95f for chapter05/glibc.xml
- Timestamp:
- 08/19/2015 08:20:02 PM (9 years ago)
- Branches:
- 7.8-systemd, 7.9-systemd
- Children:
- 102c4bb6, 9c13f79
- Parents:
- 9f3a0fff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/glibc.xml
r9f3a0fff rf77b95f 44 44 <title>Installation of Glibc</title> 45 45 46 <!-- The enable-obsolete-rpc should handle this just fine.47 <para>In some cases, particularly LFS 7.1, the rpc headers were not48 installed properly. Test to see if they are installed in the host system49 and install if they are not:</para>50 51 <screen><userinput remap="pre">if [ ! -r /usr/include/rpc/types.h ]; then52 su -c 'mkdir -pv /usr/include/rpc'53 su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc'54 fi</userinput></screen>55 -->56 <para>Fix a regression in the package that affects 32-bit architectures:</para>57 58 <screen><userinput remap="pre">sed -e '/ia32/s/^/1:/' \59 -e '/SSE2/s/^1://' \60 -i sysdeps/i386/i686/multiarch/mempcpy_chk.S</userinput></screen>61 62 46 <para>The Glibc documentation recommends building Glibc outside of the source 63 47 directory in a dedicated build directory:</para> … … 65 49 <screen><userinput remap="pre">mkdir -v ../glibc-build 66 50 cd ../glibc-build</userinput></screen> 67 <!--68 <para>Because Glibc no longer supports i386, its developers say to use the69 compiler flag <parameter>-march=i486</parameter> when building it for x8670 machines. There are several ways to accomplish that, but testing shows that71 the flag is best placed inside the build variable <quote>CFLAGS</quote>.72 Instead of overriding completely what Glibc's internal build system uses73 for CFLAGS, append the new flag to the existing contents of CFLAGS by74 making use of the special file <filename>configparms</filename>. The75 -mtune=native flag is also necessary to reset a reasonable value for -mtune76 that is changed when setting -march.</para>77 78 <screen><userinput remap="configure">case `uname -m` in79 i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;;80 esac</userinput></screen>81 -->82 51 83 52 <para>Next, prepare Glibc for compilation:</para>
Note:
See TracChangeset
for help on using the changeset viewer.