summaryrefslogtreecommitdiffstats
path: root/meta-linaro-integration/recipes-overlayed/firefox/firefox/debian-hacks/Avoid-libxpcom-being-excluded-from-linked-libraries-.patch
blob: 09cf8bf52f409f3ab5969687963518274538eae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 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)