From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zdenek Kabelac Date: Mon, 13 Feb 2023 13:31:32 +0000 (GMT) Subject: main - makefiles: allow using configure cppflags Message-ID: <20230213133132.ABEC43881D38@sourceware.org> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4791a4fc68c681a45bcdc5660c6e96af607fab27 Commit: 4791a4fc68c681a45bcdc5660c6e96af607fab27 Parent: 50f73de4b27c11c810c8f7aea3e36a5c947408af Author: Zdenek Kabelac AuthorDate: Sun Feb 12 13:12:23 2023 +0100 Committer: Zdenek Kabelac CommitterDate: Mon Feb 13 13:41:59 2023 +0100 makefiles: allow using configure cppflags Configure defines 'CPPFLAGS' and we should use defined value for compilation. Reported-by: debian --- libdm/make.tmpl.in | 5 +++-- make.tmpl.in | 5 +++-- tools/Makefile.in | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libdm/make.tmpl.in b/libdm/make.tmpl.in index 92dc715d2..fb8973b6b 100644 --- a/libdm/make.tmpl.in +++ b/libdm/make.tmpl.in @@ -59,6 +59,7 @@ DEFS += @DEFS@ # FIXME set this only where it's needed, not globally? CFLAGS ?= @COPTIMISE_FLAG@ @CFLAGS@ LDFLAGS ?= @LDFLAGS@ +CPPFLAGS ?= @CPPFLAGS@ CLDFLAGS += @CLDFLAGS@ ELDFLAGS += @ELDFLAGS@ LDDEPS += @LDDEPS@ @@ -412,7 +413,7 @@ DEFS+=-D_FILE_OFFSET_BITS=64 %.o: %.c $(DEPS) @echo " [CC] $($@ + $(Q) $(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/po/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $(CPPFLAGS) $< >$@ %.so: %.o @echo " [CC] $($@ + $(Q) $(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/po/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $(CPPFLAGS) $< >$@ %.so: %.o @echo " [CC] $(