[10.5] 1.8 build configured with --enable-strip fails: strip: symbols referenced by relocation entries that can't be stripped in: .../xpinstall/src/libxpinstall.dylib. Always use ld -exported_symbols_list, never use nmedit -s. r=ted.mielczarek a/1.9=dsicore

This commit is contained in:
mark@moxienet.com 2007-11-30 12:33:14 -08:00
Родитель a010e72f21
Коммит 22ed210045
2 изменённых файлов: 1 добавлений и 24 удалений

Просмотреть файл

@ -1141,15 +1141,6 @@ else # os2 vacpp
$(MKSHLIB) -O:$@ -DLL -INC:_dllentry $(LDFLAGS) $(OBJS) $(LOBJS) $(EXTRA_DSO_LDOPTS) $(OS_LIBS) $(EXTRA_LIBS) $(DEF_FILE)
endif # !os2 vacpp
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

Просмотреть файл

@ -2424,21 +2424,7 @@ case "$target" in
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 2>&1 | 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
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,-exported_symbols_list -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-export-list'
;;
*-cygwin*|*-mingw*|*-mks*|*-msvc|*-wince)
if test -n "$GNU_CC"; then