Skip to content

Instantly share code, notes, and snippets.

@toto
Created June 9, 2011 18:20
Show Gist options
  • Save toto/1017370 to your computer and use it in GitHub Desktop.
Save toto/1017370 to your computer and use it in GitHub Desktop.
# -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