]>
Commit | Line | Data |
---|---|---|
55e3d2f6 | 1 | |
a61fdf0a A |
2 | TESTROOT = ../.. |
3 | include ${TESTROOT}/include/common.makefile | |
4 | ||
5 | SHELL = bash # use bash shell so we can redirect just stderr | |
6 | ||
7 | # | |
2f2f92e4 | 8 | # Verify -prebind for 10.3 make ppc prebound and all others not prebound |
a61fdf0a A |
9 | # |
10 | ||
2f2f92e4 A |
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 | ||
a61fdf0a | 21 | |
2f2f92e4 | 22 | run: all |
a61fdf0a | 23 | |
2f2f92e4 | 24 | all: |
55e3d2f6 A |
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 | |
2f2f92e4 A |
27 | otool -hv main | grep ${KEYWORD} | ${FAIL_IF_EMPTY} |
28 | ${PASS_IFF_GOOD_MACHO} main | |
a61fdf0a A |
29 | |
30 | clean: | |
2f2f92e4 | 31 | rm main |