diff options
Diffstat (limited to 'trunk/testsuite/tls4.sh')
-rwxr-xr-x | trunk/testsuite/tls4.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/trunk/testsuite/tls4.sh b/trunk/testsuite/tls4.sh index 556a6d5..d0ce8a7 100755 --- a/trunk/testsuite/tls4.sh +++ b/trunk/testsuite/tls4.sh @@ -2,9 +2,9 @@ . `dirname $0`/functions.sh # First check if __thread is supported by ld.so/gcc/ld/as: rm -f tlstest -echo '__thread int a; int main (void) { return a; }' \ - | $CC -xc - -o tlstest > /dev/null 2>&1 || exit 77 -( ./tlstest || { rm -f tlstest; exit 77; } ) 2>/dev/null || exit 77 +#echo '__thread int a; int main (void) { return a; }' \ +# | $CC -xc - -o tlstest > /dev/null 2>&1 || exit 77 +#( ./tlstest || { rm -f tlstest; exit 77; } ) 2>/dev/null || exit 77 rm -f tls4 tls4lib*.so tls4.log rm -f prelink.cache $CC -shared -O2 -fpic -o tls4lib1.so $srcdir/tls4lib1.c @@ -12,12 +12,14 @@ $CC -shared -O2 -fpic -o tls4lib2.so $srcdir/tls4lib2.c \ tls4lib1.so 2>/dev/null BINS="tls4" LIBS="tls4lib1.so tls4lib2.so" -$CCLINK -o tls4 $srcdir/tls4.c -Wl,--rpath-link,. tls4lib2.so +$CCLINK -o tls4 $srcdir/tls4.c -Wl,--rpath-link,. tls4lib2.so tls4lib1.so savelibs echo $PRELINK ${PRELINK_OPTS--vm} ./tls4 > tls4.log $PRELINK ${PRELINK_OPTS--vm} ./tls4 >> tls4.log 2>&1 || exit 1 grep -q ^`echo $PRELINK | sed 's/ .*$/: /'` tls4.log && exit 2 -LD_LIBRARY_PATH=. ./tls4 || exit 3 +if [ "x$CROSS" = "x" ]; then + LD_LIBRARY_PATH=. ./tls4 || exit 3 +fi readelf -a ./tls4 >> tls4.log 2>&1 || exit 4 # So that it is not prelinked again chmod -x ./tls4 |