summaryrefslogtreecommitdiffstats
path: root/package/valgrind/valgrind.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/valgrind/valgrind.sh')
-rwxr-xr-xpackage/valgrind/valgrind.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/valgrind/valgrind.sh b/package/valgrind/valgrind.sh
new file mode 100755
index 000000000..4b8eb2e57
--- /dev/null
+++ b/package/valgrind/valgrind.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+#
+# Valgrind wrapper
+
+# Use special suppression file for uClibc
+export VALGRIND_OPTS="$VALGRIND_OPTS --suppressions=/usr/lib/valgrind/uclibc.supp"
+
+# Use 'exec' to avoid having another shell process hanging around.
+exec $0.bin "$@"
+