($(objpfx)$(lib).so): Only depend on version script if versioning is
authordrepper <drepper>
Mon, 20 Jul 1998 17:09:25 +0000 (17:09 +0000)
committerdrepper <drepper>
Mon, 20 Jul 1998 17:09:25 +0000 (17:09 +0000)
used.  Don't use $(wildcard) to find the generated version script,
instead look in $(verson-maps).

extra-lib.mk

index 0b79d4a..87d4fa3 100644 (file)
@@ -49,7 +49,12 @@ endef
 object-suffixes-left = $(object-suffixes-$(lib))
 include $(patsubst %,$(..)o-iterator.mk,$(object-suffixes-$(lib)))
 
+ifeq ($(versioning),yes)
 # Add the version script to the dependencies of the shared library.
-$(objpfx)$(lib).so: $(firstword $(wildcard $($(lib)-map) $(lib).map $(..)$(lib).map))
+$(objpfx)$(lib).so: $(firstword $($(lib)-map) \
+                               $(addprefix $(common-objpfx), \
+                                           $(filter $(lib).map, \
+                                                    $(version-maps))))
+endif
 
 endif