X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=extra-lib.mk;h=0b79d4a4597b1fef201b4a28be2da8e0fd510092;hp=e6088943e2f02df08fd8f01828951b2431045c8c;hb=fcb39030cc930bbbcaaa302612b782ade4a49000;hpb=c064d30abd7c34e9517273983b18e920ba490414;ds=sidebyside diff --git a/extra-lib.mk b/extra-lib.mk index e6088943e2..0b79d4a459 100644 --- a/extra-lib.mk +++ b/extra-lib.mk @@ -36,8 +36,8 @@ 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 +ifneq (,$(filter .os,$(object-suffixes-$(lib)))) +others: $(objpfx)$(lib).so$($(lib).so-version) endif @@ -49,4 +49,7 @@ endef object-suffixes-left = $(object-suffixes-$(lib)) include $(patsubst %,$(..)o-iterator.mk,$(object-suffixes-$(lib))) +# Add the version script to the dependencies of the shared library. +$(objpfx)$(lib).so: $(firstword $(wildcard $($(lib)-map) $(lib).map $(..)$(lib).map)) + endif