Do not tweak LD_PRELOAD or LD_LIBRARY_PATH unless we have to.

Nicky 2014-06-07 00:50:16 +02:00
parent 5672d3d362
commit b24e5056e0
2 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,8 @@ export SAVED_LD_LIBRARY_PATH="${LD_LIBRARY_PATH}"
# fi
#fi
if ! test -f FS_No_LD_Hacks.txt; then
export LD_LIBRARY_PATH="$PWD/lib:${LD_LIBRARY_PATH}"
# AO: experimentally removing to allow --settings on the command line w/o error. FIRE-1031
#export SL_OPT="`cat etc/gridargs.dat` $@"
@ -142,6 +144,7 @@ then
fi
# <FS:ND> End of hack; God will kill a kitten for this :(
fi
# Copy "$@" to ARGS array specifically to delete the --skip-gridargs switch.
# The gridargs.dat file is no more, but we still want to avoid breaking

View File

@ -1400,6 +1400,7 @@ class Linux_i686_Manifest(LinuxManifest):
except:
print "Leap Motion library not found"
self.end_prefix("lib")
open( os.path.join(self.get_dst_prefix(), "FS_No_LD_Hacks.txt" ), "w" ).write( "1" )
class Linux_x86_64_Manifest(LinuxManifest):