summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorDavid Ostrovsky <David.Ostrovsky@gmx.de>2012-04-28 20:57:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-05-03 10:36:36 +0200
commit4d68b95cb9e2fcf761940de6f8662d21218452f2 (patch)
treecba87445f787d19cf24adb4c6f16d98192175f80 /solenv
parent298fbdc42af781cdd47d2cbedd945ec8c4a564bc (diff)
add --not-as-needed linker option on unxgcc platform
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: Ubuntu changed ld to assume --as-needed by default, but there are places in LO that implicitly depend on --no-as-needed, like test_smoketest lib that is an empty wrapper around smoketest lib, or UNO executables having to link against all URE published libs so that LO extensions are guaranteed to find the URE libs. Change-Id: I88fc79766ffb4a4ca8ead05bb9033c686120cf2c
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/unxgcc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
index d288d63989c6..89665d60090a 100644
--- a/solenv/gbuild/platform/unxgcc.mk
+++ b/solenv/gbuild/platform/unxgcc.mk
@@ -213,6 +213,7 @@ $(call gb_Helper_abbreviate_dirs,\
$(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
$(foreach extraobjectlist,$(EXTRAOBJECTLISTS),`cat $(extraobjectlist)`) \
-Wl$(COMMA)--start-group $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) -Wl$(COMMA)--end-group \
+ -Wl$(COMMA)--no-as-needed \
$(LIBS) \
$(patsubst lib%.a,-l%,$(patsubst lib%.so,-l%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib))))) \
-o $(if $(SOVERSION),$(1).$(SOVERSION),$(1)))