]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Do not accept statically linked executables.
authorBart Van Assche <bvanassche@acm.org>
Tue, 1 Jul 2008 13:16:07 +0000 (13:16 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 1 Jul 2008 13:16:07 +0000 (13:16 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8327

exp-drd/tests/run_openmp_test

index 6a8b4c13951ff2873f1d835d9b081d0b961de117..f507676156b251efdeb6e12309c1bbd6c17cdab8 100755 (executable)
@@ -8,6 +8,11 @@ test -e "$1" || exit $?
 
 ./supported_libpthread || exit $?
 
+# Do not accept any statically linked executable.
+if /usr/bin/file "$1" | grep -q 'statically linked'; then
+  exit 1
+fi
+
 if [ "$(uname)" = Linux ]; then
 
   # Let the dynamic linker/loader print the path of libgomp. See also man ld.so