8 *) echo "Unsupported OS: $os"; exit 1;;
11 testdir=${testdir-testdir}/$(basename $0)
17 # test_run_ok <program> <expected return value>
28 if [ $retval != $2 ]; then
29 echo "test_run_ok: $1: return value: $retval, expected: $2"
36 gcc -shared $@ -D_GNU_SOURCE -fPIC
46 gcc $@ -D_GNU_SOURCE -Wl,-rpath,.,--export-dynamic
51 compile_program $@ $libdl