Changeset efcb393 for chapter06/glibc.xml
- Timestamp:
- 05/03/2020 09:02:51 PM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- a715dec
- Parents:
- 9d719e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/glibc.xml
r9d719e2 refcb393 44 44 <title>Installation of Glibc</title> 45 45 46 <note><para>The Glibc build system is self-contained and will install47 perfectly, even though the compiler specs file and linker are still48 pointing to <filename class="directory">/tools</filename>. The specs49 and linker cannot be adjusted before the Glibc install because the50 Glibc autoconf tests would give false results and defeat the goal51 of achieving a clean build.</para></note>52 53 46 <para>Some of the Glibc programs use the non-FHS compliant 54 47 <filename class="directory">/var/db</filename> directory to store … … 67 60 <screen><userinput remap="pre">sed -i '/asm.socket.h/a# include <linux/sockios.h>' \ 68 61 sysdeps/unix/sysv/linux/bits/socket.h</userinput></screen> 69 --> 62 === already done === 70 63 <para>Create a symlink for LSB 71 64 compliance. Additionally, for x86_64, create a compatibility symlink … … 79 72 ;; 80 73 esac</userinput></screen> 81 <!-- 74 82 75 <para>Remove a file that may be left over from a previous build attempt: 83 76 </para> … … 93 86 <para>Prepare Glibc for compilation:</para> 94 87 95 <screen><userinput remap="configure">CC="gcc -ffile-prefix-map=/tools=/usr" \ 96 ../configure --prefix=/usr \ 97 --disable-werror \ 98 --enable-kernel=&min-kernel; \ 99 --enable-stack-protector=strong \ 100 --with-headers=/usr/include \ 88 <screen><userinput remap="configure">../configure --prefix=/usr \ 89 --disable-werror \ 90 --enable-kernel=&min-kernel; \ 91 --enable-stack-protector=strong \ 92 --with-headers=/usr/include \ 101 93 libc_cv_slibdir=/lib</userinput></screen> 102 103 <variablelist>94 <!-- WIP --> 95 <variablelist> 104 96 <title>The meaning of the options and new configure parameters:</title> 105 97 106 98 <varlistentry> 107 <term><parameter>CC="gcc -ffile-prefix-map=/tools=/usr"</parameter></term> 108 <listitem> 109 <para>Make GCC record any references to files in /tools in result 110 of the compilation as if the files resided in /usr. This avoids 111 introduction of invalid paths in debugging symbols.</para> 99 <term><parameter>CC="gcc -ffile-prefix-map=$LFS_DIR=$DIR"</parameter></term> 100 <listitem> 101 <para>Make GCC record any references to files in <filename 102 class="directory">/usr/lib/gcc/x86_64-lfs-linux-gnu</filename> 103 in result of the compilation as if the files resided in <filename 104 class="directory">/usr/lib/gcc/x86_64-pc-linux-gnu</filename>. 105 This avoids introduction of invalid paths in debugging 106 symbols.</para> 112 107 </listitem> 113 108 </varlistentry> … … 129 124 </listitem> 130 125 </varlistentry> 131 126 <!-- do we need this one? --> 132 127 <varlistentry> 133 128 <term><parameter>--with-headers=/usr/include</parameter></term> 134 129 <listitem> 135 130 <para>This option tells the build system where to find the 136 kernel API headers. By default, those headers are sought in 137 <filename class="directory">/tools/include</filename>.</para> 131 kernel API headers.</para> 138 132 </listitem> 139 133 </varlistentry>
Note:
See TracChangeset
for help on using the changeset viewer.