diff --git a/libdm/Makefile.in b/libdm/Makefile.in index 1e0a017d3..f1939bc4e 100644 --- a/libdm/Makefile.in +++ b/libdm/Makefile.in @@ -41,7 +41,7 @@ ifeq ("@LIB_SUFFIX@","dylib") else LIB_SHARED = $(interface)/libdevmapper.so endif -VERSIONED_SHLIB = $(interface)/libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) +VERSIONED_SHLIB = libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) DEFS += -DDEVICE_UID=@DEVICE_UID@ -DDEVICE_GID=@DEVICE_GID@ \ -DDEVICE_MODE=@DEVICE_MODE@ @@ -87,10 +87,13 @@ install_ioctl_static: ioctl/libdevmapper.a $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< \ $(libdir)/libdevmapper.a.$(LIB_VERSION) +$(VERSIONED_SHLIB): %.$(LIB_SUFFIX).$(LIB_VERSION): $(interface)/%.$(LIB_SUFFIX) + rm -f $@ + $(LN_S) $< $@ + .PHONY: distclean_lib distclean -distclean_lib: +distclean_lib: $(RM) libdevmapper.pc distclean: distclean_lib -