diff options
Diffstat (limited to 'extra-lib.mk')
-rw-r--r-- | extra-lib.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/extra-lib.mk b/extra-lib.mk index ea5812ca65..99fce5b110 100644 --- a/extra-lib.mk +++ b/extra-lib.mk @@ -23,9 +23,6 @@ extra-objs += $(foreach o,$(object-suffixes-$(lib)),$($(lib)-routines:=$o)) alltypes-$(lib) := $(foreach o,$(object-suffixes-$(lib)),\ $(objpfx)$(patsubst %,$(libtype$o),\ $(lib:lib%=%))) -ifneq (,$(filter .so,$(object-suffixes-$(lib)))) -alltypes-$(lib) += $(objpfx)$(lib).so -endif ifeq (,$($(lib)-no-lib-dep)) lib-noranlib: $(alltypes-$(lib)) @@ -33,6 +30,13 @@ else others: $(alltypes-$(lib)) endif +# The linked shared library is never a dependent of lib-noranlib, +# because linking it will depend on libc.so already being built. +ifneq (,$(filter .so,$(object-suffixes-$(lib)))) +others: $(objpfx)$(lib).so +endif + + # Use o-iterator.mk to generate a rule for each flavor of library. define o-iterator-doit $(objpfx)$(patsubst %,$(libtype$o),$(lib:lib%=%)): \ |