]>
Commit | Line | Data |
---|---|---|
b2fa67a8 A |
1 | |
2 | TESTROOT = ../.. | |
3 | include ${TESTROOT}/include/common.makefile | |
4 | ||
5 | SHELL = bash # use bash shell so we can redirect just stderr | |
6 | ||
7 | # | |
8 | # Verify the linker errors out nicely when __dso_handle is defined in source. | |
9 | # | |
10 | ||
11 | run: all | |
12 | ||
13 | all: | |
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 | |
20 | ||
21 | ||
22 | clean: | |
23 | rm -f test test-def test-tent warnings.txt |