From 9dc7c64f932f22278bb34b18f855956755106fd0 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 11 Mar 2013 15:47:03 +0100 Subject: Don't build .os objects of static-only-routines for extra libs --- extra-lib.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'extra-lib.mk') diff --git a/extra-lib.mk b/extra-lib.mk index a2293c5..247946f 100644 --- a/extra-lib.mk +++ b/extra-lib.mk @@ -34,7 +34,12 @@ extra-objs += $(foreach o,$(filter-out .os .oS,$(object-suffixes-$(lib))),\ $($(lib)-shared-only-routines),\ $(all-$(lib)-routines)))) ifneq (,$(filter .os,$(object-suffixes-$(lib)))) -extra-objs += $(all-$(lib)-routines:%=%.os) +extra-objs += $(patsubst %,%.os,$(filter-out $($(lib)-static-only-routines),\ + $(all-$(lib)-routines))) +endif +ifneq (,$(filter .oS,$(object-suffixes-$(lib)))) +extra-objs += $(patsubst %,%.oS,$(filter $($(lib)-static-only-routines),\ + $(all-$(lib)-routines))) endif alltypes-$(lib) := $(foreach o,$(object-suffixes-$(lib)),\ $(objpfx)$(patsubst %,$(libtype$o),\ -- cgit v1.1