about summary refs log tree commit diff
path: root/extra-lib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'extra-lib.mk')
-rw-r--r--extra-lib.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra-lib.mk b/extra-lib.mk
index 793dc09c38..0b79d4a459 100644
--- a/extra-lib.mk
+++ b/extra-lib.mk
@@ -50,6 +50,6 @@ 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: $($(lib)-map)
+$(objpfx)$(lib).so: $(firstword $(wildcard $($(lib)-map) $(lib).map $(..)$(lib).map))
 
 endif