summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2006-04-24 15:12:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:18 -0500
commit758946429e8cef84ebc00e02f6fa0fb93a642aa8 (patch)
tree1fefeeedda091687e508324d5041526d9d26ea84 /source4
parenta740a8e7ca1f7511c43f03cd92d7a97c0f9f310d (diff)
downloadsamba-758946429e8cef84ebc00e02f6fa0fb93a642aa8.tar.gz
samba-758946429e8cef84ebc00e02f6fa0fb93a642aa8.tar.bz2
samba-758946429e8cef84ebc00e02f6fa0fb93a642aa8.zip
r15206: Heimdal is always compiled with _GNU_SOURCE enabled (in its configure.in it is defined unconditionally).
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal_build/config.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/heimdal_build/config.mk b/source4/heimdal_build/config.mk
index 88c88274a6..075f902cc9 100644
--- a/source4/heimdal_build/config.mk
+++ b/source4/heimdal_build/config.mk
@@ -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