diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-04-07 21:59:49 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-04-08 11:00:48 +0200 |
commit | 4984e0edbe85766be2aa04c504dddb9f0c83f8a5 (patch) | |
tree | ed52cb6c75eeb22fc920d91c9a12184a2f224b9f /solenv | |
parent | 6fe69ec3c0b7c41f02fa8f789ef80f33b6b7d0bf (diff) |
gbuild: LinkTarget: kill gb_LINKED_LIBS
Change-Id: Id5b90a9653bd12e608bc83498271c42495176613
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/LinkTarget.mk | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index 01269d7612b3..46952c87dc8b 100644 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -817,35 +817,41 @@ $$(call gb_Output_error,\ endef define gb_PrintDeps_info -$(info LibraryDep: $(4) links against $(2)) +$(info LibraryDep: $(1) links against $(2)) endef -define gb_LinkTarget_use_libraries -ifneq (,$$(filter-out $(gb_Library_KNOWNLIBS),$(2))) -$$(eval $$(call gb_Output_info,currently known libraries are: $(sort $(gb_Library_KNOWNLIBS)),ALL)) -$$(eval $$(call gb_Output_error,Cannot link against library/libraries $$(filter-out $(gb_Library_KNOWNLIBS),$(2)). Libraries must be registered in Repository.mk)) -endif - -gb_LINKED_LIBS := $(if $(filter $(gb_MERGEDLIBS),$(2)), \ - $(if $(filter $(1),$(foreach lib,$(gb_MERGEDLIBS),$(call gb_Library_get_linktargetname,$(lib)))),, merged)) \ - $(filter-out $(gb_MERGEDLIBS),$(2)) +define gb_LinkTarget__use_libraries # used by bin/module-deps.pl ifneq ($(ENABLE_PRINT_DEPS),) # exclude libraries in Library_merged ifeq ($(filter $(1),$(foreach lib,$(gb_MERGEDLIBS),$(call gb_Library_get_linktargetname,$(lib)))),) -$$(eval $$(call gb_PrintDeps_info,$(1),$$(gb_LINKED_LIBS),$(3),$(4))) +$$(eval $$(call gb_PrintDeps_info,$(4),$(3))) endif endif -$(call gb_LinkTarget_get_target,$(1)) : LINKED_LIBS += $$(gb_LINKED_LIBS) +$(call gb_LinkTarget_get_target,$(1)) : LINKED_LIBS += $(3) -$(call gb_LinkTarget_get_target,$(1)) : $$(foreach lib,$$(gb_LINKED_LIBS),$$(call gb_Library_get_target,$$(lib))) +$(call gb_LinkTarget_get_target,$(1)) : $(foreach lib,$(3),$(call gb_Library_get_target,$(lib))) $(call gb_LinkTarget_get_external_headers_target,$(1)) : \ $(foreach lib,$(2),$(call gb_Library_get_headers_target,$(lib))) endef +define gb_LinkTarget_use_libraries +ifneq (,$$(filter-out $(gb_Library_KNOWNLIBS),$(2))) +$$(eval $$(call gb_Output_info,currently known libraries are: $(sort $(gb_Library_KNOWNLIBS)),ALL)) +$$(eval $$(call gb_Output_error,Cannot link against library/libraries $$(filter-out $(gb_Library_KNOWNLIBS),$(2)). Libraries must be registered in Repository.mk)) +endif + +$(call gb_LinkTarget__use_libraries,$(1),$(2),$(strip \ + $(if $(filter $(gb_MERGEDLIBS),$(2)), \ + $(if $(filter $(1),$(foreach lib,$(gb_MERGEDLIBS),$(call gb_Library_get_linktargetname,$(lib)))),, merged)) \ + $(filter-out $(gb_MERGEDLIBS),$(2)) \ + ),$(4)) + +endef + define gb_LinkTarget_add_linked_static_libs $$(call gb_Output_error,\ gb_LinkTarget_add_linked_static_libs: use gb_LinkTarget_use_static_libraries instead.) |