From: Mike Hommey <glandium@debian.org>
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 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/xulrunner/app/Makefile.in b/xulrunner/app/Makefile.in
index e044890..2658c6e 100644
--- a/xulrunner/app/Makefile.in
+++ b/xulrunner/app/Makefile.in
@@ -115,7 +115,9 @@ LIBS += \
 	$(EXTRA_DSO_LIBS) \
 	$(MOZ_JS_LIBS) \
 	$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
+	-Wl,--no-as-needed \
 	$(XPCOM_LIBS) \
+	-Wl,--as-needed \
 	$(NSPR_LIBS) \
 	$(TK_LIBS) \
 	$(NULL)
