From a4cb33740072d6be5c58b6897eb7b2a53d7ff5d1 Mon Sep 17 00:00:00 2001 From: Dan Nichilson Date: Fri, 23 Mar 2007 21:57:23 +0000 Subject: [PATCH] Force ldd to use /bin/bash as it's Bash-specific git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7973 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++++ chapter06/glibc.xml | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 201d5a636..b98aedb99 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,11 @@ 2007-03-23 + + [dnicholson] - Force ldd to use + /bin/bash since it contains Bash-specific + syntax. + [dnicholson] - When readjusting the GCC specs file, ensure that GCC will search for the system headers in /usr/include. An diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 3354d7ef7..9184c88ee 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -87,6 +87,14 @@ mv glibc-libidn-&glibc-version; libidn patch -Np1 -i ../&glibc-branch_update-patch; + The ldd shell script contains Bash-specific + syntax. Change it's default program interpreter to /bin/bash + in case another /bin/sh is installed as described in the + Shells + chapter of the BLFS book: + +sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in + The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory: