зеркало из https://github.com/mozilla/gecko-dev.git
For limiting exported symbols on OS X, use -exported_symbols_list instead of nmedit, if it's available. Also, don't run nmedit for debug builds. Bug 195186, r=cls.
This commit is contained in:
Родитель
b568307a27
Коммит
6e09733f45
|
@ -998,10 +998,14 @@ endif
|
|||
endif # OS2
|
||||
chmod +x $@
|
||||
ifndef NO_COMPONENT_LINK_MAP
|
||||
ifndef MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS
|
||||
ifndef MOZ_DEBUG
|
||||
ifeq ($(OS_ARCH)_$(IS_COMPONENT),Darwin_1)
|
||||
nmedit -s $(BUILD_TOOLS)/gnu-ld-scripts/components-export-list $@
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifdef ENABLE_STRIP
|
||||
$(STRIP) $@
|
||||
endif
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
17
configure.in
17
configure.in
|
@ -1474,6 +1474,23 @@ case "$target" in
|
|||
*-nto*)
|
||||
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
|
||||
;;
|
||||
*-darwin*)
|
||||
AC_MSG_CHECKING(for -exported_symbols_list option to ld)
|
||||
AC_CACHE_VAL(ac_cv_exported_symbols_list,
|
||||
[
|
||||
if $LD -exported_symbols_list | grep "argument missing" >/dev/null; then
|
||||
ac_cv_exported_symbols_list=true
|
||||
else
|
||||
ac_cv_exported_symbols_list=false
|
||||
fi
|
||||
])
|
||||
if test "$ac_cv_exported_symbols_list" = true; then
|
||||
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,-exported_symbols_list -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-export-list'
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -z "$SKIP_COMPILER_CHECKS"; then
|
||||
|
|
Загрузка…
Ссылка в новой задаче