]> sourceware.org Git - lvm2.git/commitdiff
makefiles: add DEFS_$@ for cxx
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 1 Aug 2017 16:13:21 +0000 (18:13 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 1 Aug 2017 16:33:50 +0000 (18:33 +0200)
Add DEFS_$@ for c++  (used only by test suite...)
Just to pair plain C build rules.

make.tmpl.in

index 91f38b807ef43b69f388480e90f1a6d49501209a..65362d87c1ed26d21df639c05c179f228e537449 100644 (file)
@@ -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) $< >$@
This page took 0.039339 seconds and 5 git commands to generate.