about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index f3fdb37c2f..55e7520c64 100644
--- a/Makerules
+++ b/Makerules
@@ -343,7 +343,7 @@ ifeq (yes,$(build-shared))
 lib%.so: lib%_pic.a
 	$(LINK.o) -shared -o $@ -Wl,--whole-archive $< \
 		  -L$(firstword $(objdir) .)  -L$(common-objpfx:%/=%) \
-		  $(LDLIBS-$*.so)
+		  $(LDLIBS-$(notdir $*).so)
 endif
 
 libobjs: $(foreach o,$(object-suffixes),\