summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjj2012-05-19 13:02:11 +0200
committerjj2012-05-19 13:02:11 +0200
commita59825ff802a7e6104bf58b603b2545c61fe66aa (patch)
treefddc2df62df5167c80974cc51dcd68bcae8adb61
parentb851ee2d22945819bb00a23fc9f946daf7ca4026 (diff)
downloaddfhack-a59825ff802a7e6104bf58b603b2545c61fe66aa.tar.gz
dfhack-a59825ff802a7e6104bf58b603b2545c61fe66aa.tar.bz2
dfhack-a59825ff802a7e6104bf58b603b2545c61fe66aa.tar.xz
linux: remove LD_PRELOAD warning on x86_64 distrib
-rwxr-xr-xpackage/linux/dfhack10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/linux/dfhack b/package/linux/dfhack
index 3f624c2a..d8790eac 100755
--- a/package/linux/dfhack
+++ b/package/linux/dfhack
@@ -42,27 +42,27 @@ case "$1" in
shift
echo "set environment LD_PRELOAD=./hack/libdfhack.so" > gdbcmd.tmp
echo "set environment MALLOC_PERTURB_=45" >> gdbcmd.tmp
- gdb $DF_GDB_OPTS -x gdbcmd.tmp ./libs/Dwarf_Fortress $*
+ gdb $DF_GDB_OPTS -x gdbcmd.tmp ./libs/Dwarf_Fortress "$@"
rm gdbcmd.tmp
ret=$?
;;
-h | --helgrind)
shift
- LD_PRELOAD=./hack/libdfhack.so setarch i386 -R valgrind $DF_HELGRIND_OPTS --tool=helgrind --log-file=helgrind.log ./libs/Dwarf_Fortress $*
+ LD_PRELOAD=./hack/libdfhack.so setarch i386 -R valgrind $DF_HELGRIND_OPTS --tool=helgrind --log-file=helgrind.log ./libs/Dwarf_Fortress "$@"
ret=$?
;;
-v | --valgrind)
shift
- LD_PRELOAD=./hack/libdfhack.so setarch i386 -R valgrind $DF_VALGRIND_OPTS --log-file=valgrind.log ./libs/Dwarf_Fortress $*
+ LD_PRELOAD=./hack/libdfhack.so setarch i386 -R valgrind $DF_VALGRIND_OPTS --log-file=valgrind.log ./libs/Dwarf_Fortress "$@"
ret=$?
;;
-c | --callgrind)
shift
- LD_PRELOAD=./hack/libdfhack.so setarch i386 -R valgrind $DF_CALLGRIND_OPTS --tool=callgrind --separate-threads=yes --dump-instr=yes --instr-atstart=no --log-file=callgrind.log ./libs/Dwarf_Fortress $*
+ LD_PRELOAD=./hack/libdfhack.so setarch i386 -R valgrind $DF_CALLGRIND_OPTS --tool=callgrind --separate-threads=yes --dump-instr=yes --instr-atstart=no --log-file=callgrind.log ./libs/Dwarf_Fortress "$@"
ret=$?
;;
*)
- LD_PRELOAD=./hack/libdfhack.so setarch i386 -R ./libs/Dwarf_Fortress $*
+ setarch i386 -R env LD_PRELOAD=./hack/libdfhack.so ./libs/Dwarf_Fortress "$@"
ret=$?
;;
esac