Skip to contentSkip to conversation

multipath-tools: use "+=" instead of only "=" for variables in Makefile

PATCH Applied Xose Vazquez Perez 2 participants 2 messages Aug 12, 2016 – Aug 16, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: use "+=" instead of only "=" for variables in Makefile

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 kpartx/Makefile       | 2 +-
 libmultipath/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
kpartx/Makefile +1 -1
index 6f32680..8af0dc6 100644
@@ -5,7 +5,7 @@ include ../Makefile.inc
 
 CFLAGS += -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
 
-LDFLAGS = -ldevmapper
+LDFLAGS += -ldevmapper
 
 LIBDM_API_COOKIE = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_set_cookie' /usr/include/libdevmapper.h)
 
libmultipath/Makefile +1 -1
index 3a20f8e..92f130c 100644
@@ -9,7 +9,7 @@ LIBS = $(DEVLIB).$(SONAME)
 
 CFLAGS += -I$(mpathcmddir)
 
-LIBDEPS = -lpthread -ldl -ldevmapper -ludev -L$(mpathcmddir) -lmpathcmd
+LIBDEPS += -lpthread -ldl -ldevmapper -ludev -L$(mpathcmddir) -lmpathcmd
 
 ifdef SYSTEMD
 	CFLAGS += -DUSE_SYSTEMD=$(SYSTEMD)
Signature · 1 line
2.7.4
#1 lore raw

Applied.
Thanks.

Quoted 39 lines · Xose Vazquez Perez
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 kpartx/Makefile       | 2 +-
 libmultipath/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
kpartx/Makefile +1 -1
index 6f32680..8af0dc6 100644
@@ -5,7 +5,7 @@ include ../Makefile.inc
 
 CFLAGS += -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
 
-LDFLAGS = -ldevmapper
+LDFLAGS += -ldevmapper
 
 LIBDM_API_COOKIE = $(shell grep -Ecs '^[a-z]*[[:space:]]+dm_task_set_cookie'
 /usr/include/libdevmapper.h)
libmultipath/Makefile +1 -2
index 3a20f8e..92f130c 100644
@@ -9,7 +9,7 @@ LIBS = $(DEVLIB).$(SONAME)
 
 CFLAGS += -I$(mpathcmddir)
 
-LIBDEPS = -lpthread -ldl -ldevmapper -ludev -L$(mpathcmddir) -lmpathcmd
+LIBDEPS += -lpthread -ldl -ldevmapper -ludev -L$(mpathcmddir) -lmpathcmd
 
 ifdef SYSTEMD
        CFLAGS += -DUSE_SYSTEMD=$(SYSTEMD)
--

2.7.4