]>
Commit | Line | Data |
---|---|---|
b1f7435d A |
1 | TESTROOT = ../.. |
2 | include ${TESTROOT}/include/common.makefile | |
3 | ||
4 | # | |
5 | # Test that a dynamically referenced symbol is always exported | |
6 | # | |
7 | ||
8 | run: all | |
9 | ||
10 | all: | |
11 | ${CC} foo.c -dynamiclib -o libfoo.dylib | |
12 | nm -m libfoo.dylib | grep _keep_global | grep "referenced dynamically" | ${FAIL_IF_EMPTY} | |
13 | nm -m libfoo.dylib | grep _keep_hidden | grep "referenced dynamically" | ${FAIL_IF_EMPTY} | |
14 | ${PASS_IFF_GOOD_MACHO} libfoo.dylib | |
15 | ||
16 | clean: | |
17 | rm libfoo.dylib |