From d493379124a7f2b297846b3883b8143e2ecd4c46 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sat, 25 Aug 2001 18:14:53 +0000 Subject: [Bug 126] add ncurses.so symlink in /usr/lib git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1032 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/ncurses-exp.xml | 5 +++++ chapter06/ncurses-inst.xml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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. programs try to link using -lcurses instead of -lncurses. This symlink ensures that they will install correctly. +ln -sf ../../lib/libncurses.so: 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. + 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 @@ mv *.a /usr/lib && chmod 755 *.5.2 && cd /usr/lib && -ln -sf libncurses.a libcurses.a +ln -sf libncurses.a libcurses.a && +ln -sf ../../lib/libncurses.so -- cgit v1.2.3-54-g00ecf