Add a --enable-low-fat option to reduce the .dynsym bloating in components.

This commit is contained in:
ramiro%netscape.com 1999-09-16 13:43:15 +00:00
Родитель 7ee3917790
Коммит c3b017264c
4 изменённых файлов: 40 добавлений и 2 удалений

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

@ -0,0 +1,8 @@
EXPORTED {
global:
NSGetFactory;
NSGetModule;
NSRegisterSelf;
NSUnregisterSelf;
local: *;
};

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

@ -54,12 +54,19 @@ NO_SHARED_LIB = @NO_SHARED_LIB@
NO_NETSCAPE_SHARED = @NO_SHARED_LIB@
NO_STATIC_LIB = @NO_STATIC_LIB@
NO_NETSCAPE_STATIC = @NO_STATIC_LIB@
MOZ_STRIP_NOT_EXPORTED = @MOZ_STRIP_NOT_EXPORTED@
ENABLE_TESTS = @ENABLE_TESTS@
ENABLE_PICS = @ENABLE_PICS@
NO_UNIX_LDAP = @NO_UNIX_LDAP@
BUILD_IDLC = @BUILD_IDLC@
MOZ_STRIP_NOT_EXPORTED = @MOZ_STRIP_NOT_EXPORTED@
MOZ_LOW_FAT = @MOZ_LOW_FAT@
ifdef MOZ_LOW_FAT
MOZ_COMPONENTS_LOW_FAT_LDFLAGS = -Wl,--version-script,$(topsrcdir)/build/unix/gnu-ld-scripts/components-version-script
endif
ClientWallet=@ClientWallet@
CookieManagement=@CookieManagement@
SingleSignon=@SingleSignon@

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

@ -282,6 +282,12 @@ ifdef CPPSRCS
CPP_PROG_LINK = 1
endif
ifdef IS_COMPONENT
ifdef MOZ_LOW_FAT
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENTS_LOW_FAT_LDFLAGS)
endif # MOZ_LOW_FAT
endif # IS_COMPONENT
#
# BeOS specific section: link against dependent shared libs
#

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

@ -2476,6 +2476,21 @@ MOZ_ARG_ENABLE_BOOL(strip-not-exported,
dnl ========================================================
dnl ========================================================
dnl =
dnl = --enable-low-fat
dnl =
dnl = Take out unneeded symbols from the .dynsym of .so files
dnl =
dnl ========================================================
MOZ_LOW_FAT=
MOZ_ARG_ENABLE_BOOL(low-fat,
[ --enable-low-fat Take out unneeded symbols from the .dynsym of .so files ],
[MOZ_LOW_FAT=1 ])
dnl ========================================================
dnl ========================================================
dnl =
dnl = --with-debug-modules=module1,module1,etc
@ -2794,7 +2809,6 @@ AC_SUBST(MOZ_EDITOR)
AC_SUBST(MOZ_BRPROF)
AC_SUBST(UNIX_CRASH_ON_ASSERT)
AC_SUBST(MOZ_STRIP_NOT_EXPORTED)
AC_SUBST(NO_UNIX_ASYNC_DNS)
AC_SUBST(NO_SHARED_LIB)
AC_SUBST(NO_STATIC_LIB)
@ -2807,6 +2821,9 @@ AC_SUBST(NO_UNIX_LDAP)
AC_SUBST(BUILD_IDLC)
AC_SUBST(MOZ_ENABLE_GTK_MOZILLA)
AC_SUBST(MOZ_LOW_FAT)
AC_SUBST(MOZ_STRIP_NOT_EXPORTED)
AC_SUBST(MOZ_GLE)
AC_SUBST(MOZ_BUILD_ROOT)