Created
June 9, 2011 18:20
-
-
Save toto/1017370 to your computer and use it in GitHub Desktop.
Umbrella Frameworks (http://www.opensource.apple.com/source/ld64/ld64-85/unit-tests/test-cases/re-export-cases/Makefile)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -reexport_framework and -umbrella for 10.4 | |
mkdir -p Bar.framework Foo.framework | |
${CC} ${CCFLAGS} -dynamiclib bar.c -o Bar.framework/Bar -install_name "`pwd`/Bar.framework/Bar" -umbrella Foo -mmacosx-version-min=10.5 | |
${FAIL_IF_BAD_MACHO} Bar.framework/Bar | |
${CC} ${CCFLAGS} -dynamiclib foo.c -o Foo.framework/Foo -F. -Wl,-reexport_framework,Bar -mmacosx-version-min=10.5 | |
${FAIL_IF_BAD_MACHO} Foo.framework/Foo | |
otool -lv Bar.framework/Bar | grep LC_SUB_FRAMEWORK | ${FAIL_IF_EMPTY} | |
otool -lv Foo.framework/Foo | grep LC_REEXPORT_DYLIB | ${FAIL_IF_EMPTY} | |
${PASS_IFF} /usr/bin/true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment