]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/unstrippable-symbols/Makefile
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / unstrippable-symbols / Makefile
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