]>
Commit | Line | Data |
---|---|---|
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 -prebind for 10.3 make ppc prebound and all others not prebound | |
9 | # | |
10 | ||
11 | ifeq (,${findstring 64,$(ARCH)}) | |
12 | ifeq (${ARCH},i386) | |
13 | KEYWORD = NOUNDEFS | |
14 | else | |
15 | KEYWORD = PREBOUND | |
16 | endif | |
17 | else | |
18 | KEYWORD = NOUNDEFS | |
19 | endif | |
20 | ||
21 | ||
22 | run: all | |
23 | ||
24 | all: | |
25 | # SnowLeopard is missing libmx.dylib which gcc thinks it needs | |
26 | ${CC} ${CCFLAGS} main.c -o main -prebind -mmacosx-version-min=10.3 -nostdlib -lcrt1.o -lSystem | |
27 | otool -hv main | grep ${KEYWORD} | ${FAIL_IF_EMPTY} | |
28 | ${PASS_IFF_GOOD_MACHO} main | |
29 | ||
30 | clean: | |
31 | rm main |