From 78ecdf8d658c7b805b37f90a5ee3e432c09e5aed Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 18 Sep 2007 13:02:58 +0000 Subject: [PATCH] Create a symlink, e.g., libdevmapper.so.1.02, in the build dir, alongside the .so file. This helps build dynamically linked LVM. * lib/Makefile.in (VERSIONED_SHLIB): Define. * make.tmpl.in (TARGETS): Append $(VERSIONED_SHLIB). ($(VERSIONED_SHLIB)): New rule. Author: Jim Meyering --- WHATS_NEW_DM | 1 + libdm/Makefile.in | 1 + 2 files changed, 2 insertions(+) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 87b8c0f64..32b968096 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.23 - ================================== + Create e.g., libdevmapper.so.1.02, in build dir alongside the .so file. Avoid static link failure with some SELinux libraries. Remove obsolete dmfs code from tree and update INSTALL. diff --git a/libdm/Makefile.in b/libdm/Makefile.in index 9bf514d58..1e0a017d3 100644 --- a/libdm/Makefile.in +++ b/libdm/Makefile.in @@ -41,6 +41,7 @@ ifeq ("@LIB_SUFFIX@","dylib") else LIB_SHARED = $(interface)/libdevmapper.so endif +VERSIONED_SHLIB = $(interface)/libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) DEFS += -DDEVICE_UID=@DEVICE_UID@ -DDEVICE_GID=@DEVICE_GID@ \ -DDEVICE_MODE=@DEVICE_MODE@