However, the lex-generated files don't fetch config.h's definition of _GNU_SOURCE before including
features.h because of preamble added by lex which already includes some system headers which in turn
include features.h. Therefore, we need to specify it explicitly on comand line.
This change adds some 'noise' (_GNU_SOURCE already defined ...) but it is neccessary to get samba4 to
compile successfuly on Maemo.
(This used to be commit
cd7307c099ace123d840459da39a49ccf3872267)
#######################
# Start BINARY asn1_compile
[BINARY::asn1_compile]
-EXTRA_CFLAGS = \
+EXTRA_CFLAGS = -D_GNU_SOURCE \
-Iheimdal_build -Iheimdal/lib/asn1 \
-Iheimdal/kdc -Iheimdal/lib/des \
-Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE
#######################
# Start BINARY compile_et
[BINARY::compile_et]
-EXTRA_CFLAGS = \
+EXTRA_CFLAGS = -D_GNU_SOURCE \
-Iheimdal_build -Iheimdal/lib/com_err \
-Iheimdal/kdc -Iheimdal/lib/des \
-Iheimdal/lib/roken -DNO_PRINTF_ATTRIBUTE