aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-06-30 03:17:31 +0800
committerXi Ruoyao <xry111@xry111.site>2023-06-30 03:19:20 +0800
commitbbfb090d2a43fc140de9c9475e4f4913529d0f57 (patch)
tree4990c5d727cbd61bb35ee051554cd3f317836490
parentce9ec4f126d82e7c20a2436cd4d63bda02e32381 (diff)
glibc: Disable obsolete libcrypt implementation
I've not bothered to write an explanation for --disable-crypt because it will likely be the default of Glibc-2.38, then we may drop it from the command lines.
-rw-r--r--chapter05/glibc.xml1
-rw-r--r--chapter08/glibc.xml13
2 files changed, 3 insertions, 11 deletions
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml
index 14f1fac6c..7fb5e98c5 100644
--- a/chapter05/glibc.xml
+++ b/chapter05/glibc.xml
@@ -91,6 +91,7 @@ cd build</userinput></screen>
--build=$(../scripts/config.guess) \
--enable-kernel=&min-kernel; \
--with-headers=$LFS/usr/include \
+ --disable-crypt \
libc_cv_slibdir=/usr/lib</userinput></screen>
<variablelist>
diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml
index a44e285c9..4245b0ff4 100644
--- a/chapter08/glibc.xml
+++ b/chapter08/glibc.xml
@@ -79,6 +79,7 @@ cd build</userinput></screen>
--enable-kernel=&min-kernel; \
--enable-stack-protector=strong \
--with-headers=/usr/include \
+ --disable-crypt \
libc_cv_slibdir=/usr/lib</userinput></screen>
<variablelist>
@@ -489,7 +490,7 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
<seg>ld-linux-x86-64.so.2, ld-linux.so.2,
libBrokenLocale.{a,so}, libanl.{a,so},
libc.{a,so}, libc_nonshared.a, libc_malloc_debug.so,
- libcrypt.{a,so}, libdl.{a,so.2}, libg.a, libm.{a,so},
+ libdl.{a,so.2}, libg.a, libm.{a,so},
libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.so.1,
libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so,
libpcprofile.so, libpthread.{a,so.0},
@@ -795,16 +796,6 @@ mkdir -pv /etc/ld.so.conf.d</userinput></screen>
</listitem>
</varlistentry>
- <varlistentry id="libcrypt">
- <term><filename class="libraryfile">libcrypt</filename></term>
- <listitem>
- <para>The cryptography library</para>
- <indexterm zone="ch-system-glibc libcrypt">
- <primary sortas="c-libcrypt">libcrypt</primary>
- </indexterm>
- </listitem>
- </varlistentry>
-
<varlistentry id="libdl">
<term><filename class="libraryfile">libdl</filename></term>
<listitem>