From 01ac7d96fa65e83c71d5bba40633e813e9b4015b Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Thu, 8 Nov 2007 00:14:39 +0100 Subject: volume_id: create relative symlink when $(libdir) = $(usrlibdir) --- extras/volume_id/lib/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extras/volume_id/lib/Makefile') diff --git a/extras/volume_id/lib/Makefile b/extras/volume_id/lib/Makefile index b553111c61..b206854f55 100644 --- a/extras/volume_id/lib/Makefile +++ b/extras/volume_id/lib/Makefile @@ -105,7 +105,11 @@ install: all $(INSTALL_LIB) -D $(SHLIB) $(DESTDIR)$(libdir)/$(SHLIB) mkdir -p $(DESTDIR)$(usrlibdir)/ ln -sf $(SHLIB) $(DESTDIR)$(libdir)/libvolume_id.so.$(SHLIB_CUR) +ifeq ($(libdir),$(usrlibdir)) + ln -sf $(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so +else ln -sf $(libdir)/$(SHLIB) $(DESTDIR)$(usrlibdir)/libvolume_id.so +endif $(INSTALL_DATA) -D libvolume_id.pc $(DESTDIR)$(usrlibdir)/pkgconfig/libvolume_id.pc .PHONY: install -- cgit v1.2.3-54-g00ecf