- Timestamp:
- 12/17/2016 06:46:18 AM (7 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, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, 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:
- 98e7ac4
- Parents:
- 9f3c264
- Location:
- chapter06
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/creatingdirs.xml
r9f3c264 rbe3d9f3 25 25 26 26 case $(uname -m) in 27 x86_64) ln -sv lib /lib64 28 ln -sv lib /usr/lib64 29 ln -sv lib /usr/local/lib64 ;; 27 x86_64) mkdir -v /lib64 ;; 30 28 esac 31 29 -
chapter06/gcc.xml
r9f3c264 rbe3d9f3 46 46 <screen><userinput remap="pre">patch -Np1 -i ../gcc-6.1.0-asan-1.patch</userinput></screen> 47 47 --> 48 <para>If building on x86_64, change the default direcotory name for 64-bit 49 libraries to <quote>lib</quote>:</para> 50 51 <screen><userinput remap="pre">case $(uname -m) in 52 x86_64) 53 sed -e '/m64=/s/lib64/lib/' \ 54 -i.orig gcc/config/i386/t-linux64 55 ;; 56 esac</userinput></screen> 57 48 58 <para>The GCC documentation recommends building GCC in a dedicated build directory:</para> 49 59 … … 176 186 <para>Depending on your machine architecture, the above may differ slightly, 177 187 the difference usually being the name of the directory 178 after <filename class="directory">/usr/lib/gcc</filename>. If your machine is 179 a 64-bit system, you may also see a directory named <filename class="directory">lib64</filename> 180 towards the end of the string. The important thing to 181 look for here is that <command>gcc</command> has found all three 188 after <filename class="directory">/usr/lib/gcc</filename>. The important 189 thing to look for here is that <command>gcc</command> has found all three 182 190 <filename>crt*.o</filename> files under the 183 191 <filename class="directory">/usr/lib</filename> directory.</para> -
chapter06/glibc.xml
r9f3c264 rbe3d9f3 58 58 <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen> 59 59 60 <para>Create a symlink for LSB compliance and, for x86_64, a 61 compatibility symlink required for the dynamic loader to function 62 correctly:</para> 63 64 <screen><userinput remap="pre">case $(uname -m) in 65 x86) ln -s ld-linux.so.2 /lib/ld-lsb.so.3 66 ;; 67 x86_64) ln -s ../lib/ld-linux-x86-64.so.2 /lib64 68 ln -s ../lib/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3 69 ;; 70 esac</userinput></screen> 71 60 72 <para>The Glibc documentation recommends building Glibc 61 73 in a dedicated build directory:</para> … … 68 80 <screen><userinput remap="configure">../configure --prefix=/usr \ 69 81 --enable-kernel=&min-kernel; \ 70 --enable-obsolete-rpc</userinput></screen> 82 --enable-obsolete-rpc \ 83 libc_cv_slibdir=/lib</userinput></screen> 71 84 72 85 <para>Compile the package:</para> -
chapter06/libcap.xml
r9f3c264 rbe3d9f3 56 56 <para>Install the package:</para> 57 57 58 <screen><userinput remap="install">make RAISE_SETFCAP=no prefix=/usr install58 <screen><userinput remap="install">make RAISE_SETFCAP=no lib=lib prefix=/usr install 59 59 chmod -v 755 /usr/lib/libcap.so</userinput></screen> 60 60 … … 71 71 </varlistentry> 72 72 73 <varlistentry> 74 <term><parameter>lib=lib</parameter></term> 75 <listitem> 76 <para>This parameter installs the library in 77 <filename>$prefix/lib</filename> rather than 78 <filename>$prefix/lib64</filename> on x86_64. It has no effect on 79 x86.</para> 80 </listitem> 81 </varlistentry> 82 73 83 </variablelist> 74 84
Note:
See TracChangeset
for help on using the changeset viewer.