зеркало из https://github.com/mozilla/pjs.git
Add a configure flag --enable-strip-libs to make it easy to force the
libraries to strip.
This commit is contained in:
Родитель
24480c627e
Коммит
510d14db73
|
@ -55,6 +55,8 @@ ClientWallet=@ClientWallet@
|
|||
CookieManagement=@CookieManagement@
|
||||
SingleSignon=@SingleSignon@
|
||||
|
||||
MOZ_POST_DSO_LIB_COMMAND = @MOZ_POST_DSO_LIB_COMMAND@
|
||||
MOZ_POST_AR_LIB_COMMAND = @MOZ_POST_AR_LIB_COMMAND@
|
||||
|
||||
MOZ_ENABLE_GTK_MOZILLA = @MOZ_ENABLE_GTK_MOZILLA@
|
||||
MOZ_BUILD_ROOT = @MOZ_BUILD_ROOT@
|
||||
|
|
|
@ -524,17 +524,20 @@ endif
|
|||
$(AR) $(OBJS) $(LOBJS) $(SUB_LOBJS)
|
||||
$(RANLIB) $@
|
||||
@rm -f foodummyfilefoo $(SUB_LOBJS)
|
||||
$(MOZ_POST_AR_LIB_COMMAND) $@
|
||||
else
|
||||
ifdef OS2_IMPLIB
|
||||
$(LIBRARY): $(OBJS) $(DEF_FILE)
|
||||
rm -f $@
|
||||
$(IMPLIB) $@ $(DEF_FILE)
|
||||
$(RANLIB) $@
|
||||
$(MOZ_POST_AR_LIB_COMMAND) $@
|
||||
else
|
||||
$(LIBRARY): $(OBJS)
|
||||
rm -f $@
|
||||
$(AR) $(LIBOBJS),,
|
||||
$(RANLIB) $@
|
||||
$(MOZ_POST_AR_LIB_COMMAND) $@
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -543,11 +546,13 @@ $(SHARED_LIBRARY): $(OBJS) $(LOBJS)
|
|||
rm -f $@
|
||||
$(MKSHLIB) -o $@ $(OBJS) $(LOBJS) $(EXTRA_DSO_LDOPTS)
|
||||
chmod +x $@
|
||||
$(MOZ_POST_DSO_LIB_COMMAND) $@
|
||||
else
|
||||
$(SHARED_LIBRARY): $(OBJS) $(DEF_FILE)
|
||||
rm -f $@
|
||||
$(LINK_DLL) $(OBJS) $(OS_LIBS) $(EXTRA_LIBS) $(DEF_FILE)
|
||||
chmod +x $@
|
||||
$(MOZ_POST_DSO_LIB_COMMAND) $@
|
||||
endif
|
||||
|
||||
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
|
||||
|
|
17
configure.in
17
configure.in
|
@ -1479,6 +1479,20 @@ then
|
|||
CXXFLAGS="$CXXFLAGS $MOZ_DEBUG_FLAGS"
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl =
|
||||
dnl = --enable-strip-libs
|
||||
dnl =
|
||||
dnl = Enable stripping of .so and .a libs
|
||||
dnl =
|
||||
dnl ========================================================
|
||||
MOZ_POST_DSO_LIB_COMMAND=true
|
||||
MOZ_POST_AR_LIB_COMMAND=true
|
||||
|
||||
MOZ_ARG_ENABLE_BOOL(strip-libs,
|
||||
[ --enable-strip-libs Enable stripping of .so and .a libs ],
|
||||
[ MOZ_POST_DSO_LIB_COMMAND=strip MOZ_POST_AR_LIB_COMMAND=strip ])
|
||||
|
||||
dnl ========================================================
|
||||
dnl =
|
||||
dnl = --with-debug-modules=module1,module1,etc
|
||||
|
@ -1715,6 +1729,9 @@ AC_SUBST(BUILD_IDLC)
|
|||
AC_SUBST(MOZ_ENABLE_GTK_MOZILLA)
|
||||
AC_SUBST(MOZ_BUILD_ROOT)
|
||||
|
||||
AC_SUBST(MOZ_POST_DSO_LIB_COMMAND)
|
||||
AC_SUBST(MOZ_POST_AR_LIB_COMMAND)
|
||||
|
||||
AC_SUBST(ClientWallet)
|
||||
AC_SUBST(CookieManagement)
|
||||
AC_SUBST(SingleSignon)
|
||||
|
|
Загрузка…
Ссылка в новой задаче