Author: ab Date: 2006-04-24 15:12:21 +0000 (Mon, 24 Apr 2006) New Revision: 15206
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15206 Log: 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. Modified: branches/SAMBA_4_0/source/heimdal_build/config.mk Changeset: Modified: branches/SAMBA_4_0/source/heimdal_build/config.mk =================================================================== --- branches/SAMBA_4_0/source/heimdal_build/config.mk 2006-04-24 14:59:30 UTC (rev 15205) +++ branches/SAMBA_4_0/source/heimdal_build/config.mk 2006-04-24 15:12:21 UTC (rev 15206) @@ -370,7 +370,7 @@ ####################### # 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 @@ ####################### # 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