From 95fca3d1d540c83bc17a28eba157010971def9e9 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 26 Apr 2024 16:20:59 +0200 Subject: [PATCH] makefile: avoid creating shared lib for static only build --- WHATS_NEW_DM | 1 + libdm/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index ef07fd077..ad695aafc 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.198 - =================== + Fix static only compilation of libdevmapper.a and dmsetup tool. Use better code for closing opened descriptors when starting dmeventd. Correct dmeventd -R for systemd environment. Restart of dmeventd -R checks pid file to detect running dmeventd first. diff --git a/libdm/Makefile.in b/libdm/Makefile.in index e38317325..6ae0075f8 100644 --- a/libdm/Makefile.in +++ b/libdm/Makefile.in @@ -45,9 +45,9 @@ ifeq ("@STATIC_LINK@", "yes") LIB_STATIC = $(interface)/libdevmapper.a endif +ifeq ("@SHARED_LINK@", "yes") LIB_SHARED = $(interface)/libdevmapper.$(LIB_SUFFIX) LIB_VERSION = $(LIB_VERSION_DM) -ifeq ("@SHARED_LINK@", "yes") TARGETS = libdevmapper.$(LIB_SUFFIX) libdevmapper.$(LIB_SUFFIX).$(LIB_VERSION) .symver_check endif