[lvm-devel] master - makefiles: add DEFS_$@ for cxx
Zdenek Kabelac
zkabelac at sourceware.org
Tue Aug 1 16:34:38 UTC 2017
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3232b210ab750bb21b9032d41cf20aee2bb33288
Commit: 3232b210ab750bb21b9032d41cf20aee2bb33288
Parent: ad44543e8166d7068c8db1222aa06c786dcf58b3
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Tue Aug 1 18:13:21 2017 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Tue Aug 1 18:33:50 2017 +0200
makefiles: add DEFS_$@ for cxx
Add DEFS_$@ for c++ (used only by test suite...)
Just to pair plain C build rules.
---
make.tmpl.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/make.tmpl.in b/make.tmpl.in
index 91f38b8..65362d8 100644
--- a/make.tmpl.in
+++ b/make.tmpl.in
@@ -439,7 +439,7 @@ endif
$(CC) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
%.o: %.cpp
- $(CXX) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(DEFS) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
+ $(CXX) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
%.pot: %.c Makefile
$(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/include/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $< >$@
More information about the lvm-devel
mailing list