Make sure that MacPorts never gets to the DYLD_LIBRARY_PATH
--HG-- branch : bgschaid/minorAdditionsBranch
This commit is contained in:
parent
912e758cc7
commit
823c6c0c18
1 changed files with 5 additions and 1 deletions
|
@ -48,9 +48,13 @@ _foamAddLib()
|
||||||
do
|
do
|
||||||
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
|
||||||
|
# do NOT add the lib of MacPort as this might break programs
|
||||||
|
if [ "$1" != "/opt/local/lib" ]
|
||||||
then
|
then
|
||||||
export DYLD_LIBRARY_PATH=$1:$DYLD_LIBRARY_PATH
|
export DYLD_LIBRARY_PATH=$1:$DYLD_LIBRARY_PATH
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue