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:
Родитель
b7cc3989cc
Коммит
972fb87caf
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче