bodge linking for disable-dynamic-loading case
Change-Id: I5c1c6cae8d2f179a68e0c6e11e89c7c947e4b479 Reviewed-on: https://gerrit.libreoffice.org/32229 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
8092d344fa
commit
f24f0ba63a
@ -133,13 +133,20 @@ $(call gb_Helper_abbreviate_dirs,\
|
||||
$(foreach object,$(GENCOBJECTS),$(call gb_GenCObject_get_target,$(object))) \
|
||||
$(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))) \
|
||||
$(T_LIBS) \
|
||||
-Wl$(COMMA)--end-group \
|
||||
-Wl$(COMMA)--no-as-needed \
|
||||
$(patsubst lib%.a,-l%,$(patsubst lib%.so,-l%,$(patsubst %.$(gb_Library_UDK_MAJORVER),%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))))) \
|
||||
$(if $(filter TRUE,$(DISABLE_DYNLOADING)), \
|
||||
-Wl$(COMMA)--start-group \
|
||||
$(patsubst lib%.a,-l%,$(patsubst lib%.so,-l%,$(patsubst %.$(gb_Library_UDK_MAJORVER),%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))))) \
|
||||
$(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
|
||||
$(T_LIBS) \
|
||||
-Wl$(COMMA)--end-group \
|
||||
, \
|
||||
-Wl$(COMMA)--start-group \
|
||||
$(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
|
||||
$(T_LIBS) \
|
||||
-Wl$(COMMA)--end-group \
|
||||
-Wl$(COMMA)--no-as-needed \
|
||||
$(patsubst lib%.a,-l%,$(patsubst lib%.so,-l%,$(patsubst %.$(gb_Library_UDK_MAJORVER),%,$(foreach lib,$(LINKED_LIBS),$(call gb_Library_get_filename,$(lib)))))) \
|
||||
) \
|
||||
-o $(1) \
|
||||
$(if $(SOVERSIONSCRIPT),&& ln -sf ../../program/$(notdir $(1)) $(ILIBTARGET)))
|
||||
$(if $(filter Library,$(TARGETTYPE)), $(call gb_Helper_abbreviate_dirs,\
|
||||
|
Loading…
x
Reference in New Issue
Block a user