From af315a5f84d9e970aa9eeccdb09e85d11a76723c Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 1 Dec 2013 12:32:52 -0500 Subject: [PATCH] Update build_wxBase In Debian systems, /etc/ld.so.conf already contains /usr/local/lib, so we just have to do "sudo ldconfig -v". --- build_wxBase | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/build_wxBase b/build_wxBase index 660e32a..20b08b4 100755 --- a/build_wxBase +++ b/build_wxBase @@ -1,6 +1,6 @@ #!/bin/bash -BAKEFILES=$(PWD)/bakefiles.zip +BAKEFILES=${PWD}/bakefiles.zip if [ -e $BAKEFILES ] then @@ -21,13 +21,12 @@ then sudo make install # add /usr/local/lib to /etc/ld.so.conf, if needed and relink the libraries - grep -q /usr/local/lib /etc/ld.so.conf - RETVAL=$? - if [ $RETVAL -eq 1 ] - then - sudo echo /usr/local/lib >> /etc/ld.so.conf - fi - sudo ldconfig + sudo ldconfig -v + + echo "===================================================" + echo "wxBase compiled and installed!" + echo "Inspect the 'ldconfig -v' output above to make sure that the wx libraries" + echo "are showing up in the /usr/local/lib directory." else echo "$BAKEFILES not found, aborting!" fi