From: Bart Van Assche Date: Tue, 1 Jul 2008 13:16:07 +0000 (+0000) Subject: Do not accept statically linked executables. X-Git-Tag: svn/VALGRIND_3_4_0~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d4145f5026f8b5394c55d5db3d68a82bf9385d6;p=thirdparty%2Fvalgrind.git Do not accept statically linked executables. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8327 --- diff --git a/exp-drd/tests/run_openmp_test b/exp-drd/tests/run_openmp_test index 6a8b4c1395..f507676156 100755 --- a/exp-drd/tests/run_openmp_test +++ b/exp-drd/tests/run_openmp_test @@ -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