On Thu, 2015-10-01 at 18:20 +0200, Diederik de Haas wrote: > Hi, > > I want to add "EXTRA_CFLAGS += -Werror=date-time" to the Makefile of my kernel > module project (https://github.com/diederikdehaas/rtl8812AU) to support > Reproducible Builds. But this makes the build fail when using Jessie (or > older) since that flag isn't supported on GCC < 4.9. > While gcc-4.9 is the default on Jessie, it looks like gcc-4.8 is used by > default, which matches the value from /proc/version. There's a similar > mismatch on Sid (and probably Stretch). [...] Use the cc-option macro defined by Kbuild: EXTRA_CFLAGS += $(call cc-option,-Werror=date-time) Ben. -- Ben Hutchings Knowledge is power. France is bacon.
Attachment:
signature.asc
Description: This is a digitally signed message part