aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chapter06/ncurses-exp.xml5
-rw-r--r--chapter06/ncurses-inst.xml3
2 files changed, 7 insertions, 1 deletions
diff --git a/chapter06/ncurses-exp.xml b/chapter06/ncurses-exp.xml
index a539783dc..fe4ee321b 100644
--- a/chapter06/ncurses-exp.xml
+++ b/chapter06/ncurses-exp.xml
@@ -20,5 +20,10 @@ properly so we do it manaully instead.</para>
programs try to link using -lcurses instead of -lncurses. This symlink
ensures that they will install correctly.</para>
+<para><userinput>ln -sf ../../lib/libncurses.so:</userinput> This link
+is created because if it isn't, the linker will not find the dynamic
+library when linking and so link all programs with the static ncurses
+library.</para>
+
</sect2>
diff --git a/chapter06/ncurses-inst.xml b/chapter06/ncurses-inst.xml
index c332f40bb..2ec5b55f3 100644
--- a/chapter06/ncurses-inst.xml
+++ b/chapter06/ncurses-inst.xml
@@ -11,6 +11,7 @@
<userinput>mv *.a /usr/lib &amp;&amp;</userinput>
<userinput>chmod 755 *.5.2 &amp;&amp;</userinput>
<userinput>cd /usr/lib &amp;&amp;</userinput>
-<userinput>ln -sf libncurses.a libcurses.a</userinput></screen></para>
+<userinput>ln -sf libncurses.a libcurses.a &amp;&amp;</userinput>
+<userinput>ln -sf ../../lib/libncurses.so</userinput></screen></para>
</sect2>