Use the linker option to control which symbols are exported for Mach-O builds (only export NSGetModule from component libraries). Bug 187732, r=cls.

This commit is contained in:
bryner%netscape.com 2003-01-06 00:40:49 +00:00
parent edc2865fd7
commit ce2428141f
3 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
_NSGetModule

View File

@ -1473,6 +1473,9 @@ case "$target" in
*-nto*)
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
;;
*-darwin*)
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,-exported_symbols_list -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-export-list'
;;
esac
if test -z "$SKIP_COMPILER_CHECKS"; then

View File

@ -33,6 +33,7 @@ ifdef _BUILD_BUNDLE
IS_COMPONENT = 1
DLL_SUFFIX = .bundle
NO_DIST_INSTALL = 1
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS=
endif
# Do not set EXPORT_LIBRARY as we do not want xpcom in the static libs list