3 include ${TESTROOT}/include/common.makefile
5 SHELL = bash # use bash shell so we can redirect just stderr
8 # Verify the linker errors out nicely when __dso_handle is defined in source.
14 ${CC} ${CCFLAGS} test.c -o test
15 ${FAIL_IF_BAD_MACHO} test
16 ${CC} ${CCFLAGS} test.c -DDSO_DEF=1 -o test-def 2>warnings.txt
17 ${FAIL_IF_BAD_MACHO} test-def
18 ${CC} ${CCFLAGS} test.c -DDSO_TENT=1 -o test-tent
19 ${PASS_IFF_GOOD_MACHO} test-tent
23 rm -f test test-def test-tent warnings.txt