mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
edc2865fd7
commit
ce2428141f
1
build/unix/gnu-ld-scripts/components-export-list
Normal file
1
build/unix/gnu-ld-scripts/components-export-list
Normal file
@ -0,0 +1 @@
|
||||
_NSGetModule
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user