summaryrefslogtreecommitdiff
path: root/libdm/Makefile.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-08-01 00:01:07 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-08-01 11:53:30 +0200
commit2232e82d25382f499adf83cbc7525b281f4f8b92 (patch)
tree4a7d7a8bc5f6ead08758e6030f7fda49dd69ce49 /libdm/Makefile.in
parent918e867abe6a455a401346744820d9e54a977749 (diff)
downloadlvm2-2232e82d25382f499adf83cbc7525b281f4f8b92.tar.gz
makefiles: fixing linking
Avoid adding -g more then once for debug builds. Avoid enabling DEBUG_MEM when we build multithreaded tools. Link executables with -fPIE -pie and --export-dynamic LDFLAGS Introduce PROGS_FLAGS to add option to pass flags for external libs. Link lvm2 internally library only when really used. Link DAEMON_LIBS with daemons. Pass VALGRIND_CFLAGS internally Set shell failure mode on couple places.
Diffstat (limited to 'libdm/Makefile.in')
-rw-r--r--libdm/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/Makefile.in b/libdm/Makefile.in
index 5adf99292..7396cdc23 100644
--- a/libdm/Makefile.in
+++ b/libdm/Makefile.in
@@ -54,7 +54,7 @@ EXPORTED_FN_PREFIX = dm
include $(top_builddir)/make.tmpl
-CFLAGS += $(UDEV_CFLAGS) $(VALGRIND_CFLAGS)
+PROGS_CFLAGS = $(UDEV_CFLAGS)
LIBS += $(RT_LIB) $(SELINUX_LIBS) $(UDEV_LIBS) $(PTHREAD_LIBS) $(M_LIBS)