From 0c74afa1c613537e5aed33ed230755cfe8b0ab03 Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Thu, 16 Mar 2017 23:03:03 +0000 Subject: [PATCH] make.tmpl: Support per-object DEFS. Same as CFLAGS. --- make.tmpl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make.tmpl.in b/make.tmpl.in index 2af1b1c12..41f23e6a3 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 $@