about summary refs log tree commit diff
path: root/extra-lib.mk
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-03-11 15:47:03 +0100
committerAndreas Schwab <schwab@suse.de>2013-03-13 12:12:45 +0100
commit9dc7c64f932f22278bb34b18f855956755106fd0 (patch)
tree0f1935271f07ec3dea5c5438b2fde82b5c5fc715 /extra-lib.mk
parent05087fbb0dadfd38cd4e2743e63a8c5c0ca1de54 (diff)
downloadglibc-9dc7c64f932f22278bb34b18f855956755106fd0.tar.gz
glibc-9dc7c64f932f22278bb34b18f855956755106fd0.tar.xz
glibc-9dc7c64f932f22278bb34b18f855956755106fd0.zip
Don't build .os objects of static-only-routines for extra libs
Diffstat (limited to 'extra-lib.mk')
-rw-r--r--extra-lib.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/extra-lib.mk b/extra-lib.mk
index a2293c5c6e..247946f6aa 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),\