|
@@ -78,9 +78,11 @@ mv glibc-libidn-&glibc-version; libidn</userinput></screen>
|
|
|
test would be carried out against the wrong Glibc. We can force the script
|
|
|
to check the Glibc we have just installed with the following:</para>
|
|
|
|
|
|
-<screen><userinput>sed -i \
|
|
|
-'s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux-x86-64.so.2 -o|' \
|
|
|
- scripts/test-installation.pl</userinput></screen>
|
|
|
+<screen><userinput>DL=$(readelf -l /bin/sh | grep interpreter | \
|
|
|
+awk '{print $4}' | sed -e 's@/tools@@' -e 's@]$@@')
|
|
|
+sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \
|
|
|
+ scripts/test-installation.pl
|
|
|
+unset DL</userinput></screen>
|
|
|
|
|
|
<para>The <command>ldd</command> shell script contains Bash-specific
|
|
|
syntax. Change it's default program interpreter to <command>/bin/bash</command>
|