mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
f65914a6fd
commit
f88940bd50
@ -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
|
||||
|
||||
#
|
||||
|
15
configure.in
15
configure.in
@ -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 ========================================================
|
||||
|
Loading…
Reference in New Issue
Block a user