linux: openSuse don't follow the FHS, so manually pick the lib path

This commit is contained in:
Gregory Hainaut 2014-09-24 09:01:59 +02:00
parent 5b3f031654
commit c66ea9f740
1 changed files with 13 additions and 0 deletions

View File

@ -56,6 +56,19 @@ then
export LD_LIBRARY_PATH="./3rdPartyLibs:$LD_LIBRARY_PATH"
fi
fi
# openSuse don't follow FHS !!!!
bad_wx_path="/usr/lib/wx-2.8-stl"
if [ -e "$bad_wx_path" ]
then
if [ -z $LD_LIBRARY_PATH ]
then
OLD_LD_LIBRARY_PATH=""
export LD_LIBRARY_PATH="$bad_wx_path"
else
OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$bad_wx_path:$LD_LIBRARY_PATH"
fi
fi
# Test plugin depencencies
if [ -x `which ldd` ]