|
From: <sv...@va...> - 2008-07-01 13:16:00
|
Author: bart Date: 2008-07-01 14:16:07 +0100 (Tue, 01 Jul 2008) New Revision: 8327 Log: Do not accept statically linked executables. Modified: trunk/exp-drd/tests/run_openmp_test Modified: trunk/exp-drd/tests/run_openmp_test =================================================================== --- trunk/exp-drd/tests/run_openmp_test 2008-07-01 13:15:31 UTC (rev 8326) +++ trunk/exp-drd/tests/run_openmp_test 2008-07-01 13:16:07 UTC (rev 8327) @@ -8,6 +8,11 @@ ./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 |