diff --git a/chapter08/expect.xml b/chapter08/expect.xml
index 5b5047cda..d7c6341f4 100644
--- a/chapter08/expect.xml
+++ b/chapter08/expect.xml
@@ -76,6 +76,7 @@
./configure --prefix=/usr \
--with-tcl=/usr/lib \
--enable-shared \
+ --disable-rpath \
--mandir=/usr/share/man \
--with-tclinclude=/usr/include
diff --git a/chapter08/readline.xml b/chapter08/readline.xml
index ffb33cc60..2bc18359c 100644
--- a/chapter08/readline.xml
+++ b/chapter08/readline.xml
@@ -49,6 +49,13 @@
sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
+ Prevent hard coding library search paths (rpath) into
+ the shared libraries. This package does not need rpath for an
+ installation into the standard location, and rpath may sometimes cause
+ unwanted effects or even security issues:
+
+sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf
+
Now fix a problem identified upstream:
patch -Np1 -i ../&readline-fixes-patch;
diff --git a/chapter08/tcl.xml b/chapter08/tcl.xml
index fd920e2c9..bfb23c3a8 100644
--- a/chapter08/tcl.xml
+++ b/chapter08/tcl.xml
@@ -55,7 +55,23 @@
SRCDIR=$(pwd)
cd unix
./configure --prefix=/usr \
- --mandir=/usr/share/man
+ --mandir=/usr/share/man \
+ --disable-rpath
+
+
+ The meaning of the new configure parameters:
+
+
+ --disable-rpath
+
+ This parameter prevents hard coding library search paths
+ (rpath) into the binary executable files and shared libraries.
+ This package does not need rpath for an installation into the
+ standard location, and rpath may sometimes cause unwanted effects
+ or even security issues.
+
+
+
Build the package: