diff --git a/WHATS_NEW b/WHATS_NEW index 9155ddf91..d512ab5aa 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.105 - ===================================== + Support per-object compilation cflags via CFLAGS_object.o. Automatically detect support for compiler/linker options to use RELRO and PIE. Add --splitsnapshot to lvconvert to separate out cow LV. Reinstate origin reload to complete lvconvert -s with active LVs. (2.02.98) diff --git a/make.tmpl.in b/make.tmpl.in index 35a47be2f..944be9b68 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -345,7 +345,7 @@ endif $(TARGETS): $(OBJECTS) %.o: %.c - $(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CFLAGS) $< -o $@ + $(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@ %.pot: %.c Makefile $(CC) -E $(INCLUDES) -include $(top_srcdir)/include/pogen.h \