diff --git a/common.mak b/common.mak
index f06d3268a0990957b0d3b1faad870e29fdd97eb8..6154883150758548e84e5cf11a8219249f4dd65b 100644
--- a/common.mak
+++ b/common.mak
@@ -60,7 +60,7 @@ install: install-libs install-headers
 install-libs: $(INSTLIBTARGETS)
 
 install-lib-shared: $(SLIBNAME)
-	install -d "$(libdir)"
+	install -d "$(shlibdir)"
 ifeq ($(CONFIG_MINGW),yes)
 	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
 else