From 823c6c0c189214c655e84e0b8399d35271771db2 Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Thu, 11 Jul 2013 19:20:30 +0200 Subject: [PATCH] Make sure that MacPorts never gets to the DYLD_LIBRARY_PATH --HG-- branch : bgschaid/minorAdditionsBranch --- etc/settings.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/settings.sh b/etc/settings.sh index 042269c11..e6a1bb0a3 100644 --- a/etc/settings.sh +++ b/etc/settings.sh @@ -49,7 +49,11 @@ _foamAddLib() export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH if [ "$WM_ARCH_BASE" = "darwin" ] then - export DYLD_LIBRARY_PATH=$1:$DYLD_LIBRARY_PATH + # do NOT add the lib of MacPort as this might break programs + if [ "$1" != "/opt/local/lib" ] + then + export DYLD_LIBRARY_PATH=$1:$DYLD_LIBRARY_PATH + fi fi shift done