[lvm-devel] master - make.tmpl: Support per-object DEFS.

Alasdair Kergon agk at sourceware.org
Thu Mar 16 23:14:53 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0c74afa1c613537e5aed33ed230755cfe8b0ab03
Commit:        0c74afa1c613537e5aed33ed230755cfe8b0ab03
Parent:        2d007673947b26bd0807cb637abb2fb9563c5e41
Author:        Alasdair G Kergon <agk at redhat.com>
AuthorDate:    Thu Mar 16 23:03:03 2017 +0000
Committer:     Alasdair G Kergon <agk at redhat.com>
CommitterDate: Thu Mar 16 23:03:03 2017 +0000

make.tmpl: Support per-object DEFS.

Same as CFLAGS.
---
 make.tmpl.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/make.tmpl.in b/make.tmpl.in
index 2af1b1c..41f23e6 100644
--- a/make.tmpl.in
+++ b/make.tmpl.in
@@ -416,7 +416,7 @@ endif
 .LIBPATTERNS = lib%.so lib%.a
 
 %.o: %.c
-	$(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
+	$(CC) -c $(INCLUDES) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
 
 %.o: %.cpp
 	$(CXX) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@




More information about the lvm-devel mailing list