Commit 762589e6 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX] - this fixes the LD_PRELOAD warning on startup for the optional externals libs

parent abb493fe
......@@ -5,7 +5,18 @@ BINDIR=`dirname "$0"`
cd "$BINDIR/.."
# We want to avoid that multiple system installations of OpenWalnut cause some weird loading of libs. We want ours (relative to our executable) to be loaded:
export LD_PRELOAD="lib/"
# Well, this one needs to be there! If not, your installation is wrong.
# We need to ensure the libs are there. If not, do not add them to the preloads variable
for lib in $Libs
if [ -e "lib/$lib" ]; then
# Finally, export it
export LD_PRELOAD=$Preloads
# Run OpenWalnut
bin/openwalnut-qt4 $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment