about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index c8a5c895f2..2ccfeae3fb 100644
--- a/Makerules
+++ b/Makerules
@@ -601,6 +601,15 @@ endef
 object-suffixes-left := $(versioned)
 include $(..)o-iterator.mk
 
+# Make symlinks in the build directory, because the versioned names might
+# be referenced by a DT_NEEDED in another library.
+define o-iterator-doit
+$(objpfx)$o$($o-version): $(objpfx)$o; $$(make-link)
+endef
+object-suffixes-left := $(versioned)
+include $(..)o-iterator.mk
+
+
 define o-iterator-doit
 $(libdir)/$o$($o-version): $(libdir)/$(o:.so=)-$(version).so; $$(make-link)
 endef