diff options
author | David Ostrovsky <David.Ostrovsky@gmx.de> | 2012-04-28 20:57:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-05-03 10:36:36 +0200 |
commit | 4d68b95cb9e2fcf761940de6f8662d21218452f2 (patch) | |
tree | cba87445f787d19cf24adb4c6f16d98192175f80 | |
parent | commit-hook: tweak add_ChangeId() to tolerate git-am -s behavior (diff) | |
download | core-4d68b95cb9e2fcf761940de6f8662d21218452f2.tar.gz core-4d68b95cb9e2fcf761940de6f8662d21218452f2.zip |
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
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 1 |
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))) |