]> git.saurik.com Git - apple/ld64.git/blame - ld64-134.9/unit-tests/test-cases/unstrippable-symbols/Makefile
ld64-134.9.tar.gz
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / unstrippable-symbols / Makefile
CommitLineData
b1f7435d
A
1TESTROOT = ../..
2include ${TESTROOT}/include/common.makefile
3
4#
5# Test that a dynamically referenced symbol is always exported
6#
7
8run: all
9
10all:
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
16clean:
17 rm libfoo.dylib