Turn on (for real this time) stripping of uneeded symbols from

components.  Only for linux non debug builds.  Approved by mscott.
This commit is contained in:
ramiro%netscape.com 1999-09-22 09:54:00 +00:00
parent f65914a6fd
commit f88940bd50
2 changed files with 15 additions and 8 deletions

View File

@ -282,10 +282,12 @@ ifdef CPPSRCS
CPP_PROG_LINK = 1
endif
#
# This will strip out symbols that the component shouldnt be
# exporting from the .dynsym section.
#
ifdef IS_COMPONENT
ifdef MOZ_LOW_FAT
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENTS_LOW_FAT_LDFLAGS)
endif # MOZ_LOW_FAT
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS)
endif # IS_COMPONENT
#

View File

@ -2478,14 +2478,19 @@ dnl = MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS
dnl =
dnl = Flags to strip unused symbols from .so components
dnl =
dnl = On on Linux non debug builds by default
dnl =
dnl ========================================================
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS=
case "$host" in
*-linux*)
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(topsrcdir)/build/unix/gnu-ld-scripts/components-version-script'
;;
esac
if test ! "$MOZ_DEBUG"
then
case "$host" in
*-linux*)
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(topsrcdir)/build/unix/gnu-ld-scripts/components-version-script'
;;
esac
fi
dnl ========================================================
dnl ========================================================