From: Mike Hommey Date: Wed, 12 Mar 2008 23:18:23 +0100 Subject: Avoid libxpcom being excluded from linked libraries by -Wl,--as-needed Force libxpcom to be linked to xulrunner-bin and xpcshell so that it is loaded in most cases. --- xulrunner/app/Makefile.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xulrunner/app/Makefile.in b/xulrunner/app/Makefile.in index d6efcbb..eae02da 100644 --- a/xulrunner/app/Makefile.in +++ b/xulrunner/app/Makefile.in @@ -83,7 +83,9 @@ endif LIBS += \ $(EXTRA_DSO_LIBS) \ $(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \ + -Wl,--no-as-needed \ $(XPCOM_LIBS) \ + -Wl,--as-needed \ $(NSPR_LIBS) \ $(NULL)