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