Make sure that MacPorts never gets to the DYLD_LIBRARY_PATH

--HG--
branch : bgschaid/minorAdditionsBranch
This commit is contained in:
Bernhard F.W. Gschaider 2013-07-11 19:20:30 +02:00
parent 7ac8e597de
commit bb0d8e90a6

View file

@ -49,7 +49,11 @@ _foamAddLib()
export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH
if [ "$WM_ARCH_BASE" = "darwin" ] if [ "$WM_ARCH_BASE" = "darwin" ]
then 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 fi
shift shift
done done