r15206: Heimdal is always compiled with _GNU_SOURCE enabled (in its configure.in...
authorAlexander Bokovoy <ab@samba.org>
Mon, 24 Apr 2006 15:12:21 +0000 (15:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:18 +0000 (14:04 -0500)
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)

source4/heimdal_build/config.mk

index 88c88274a6121c3feb447fe65de6761ab6f698eb..075f902cc9286f7b4c3d17a4396c422a3d2d3b57 100644 (file)
@@ -370,7 +370,7 @@ OBJ_FILES = \
 #######################
 # 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
@@ -405,7 +405,7 @@ OBJ_FILES = \
 #######################
 # 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