test: define NETBSD_SOURCE for gcc/clang

This commit is contained in:
Arun Thomas 2011-07-26 16:52:43 +02:00
parent 530bd5d486
commit 6d1095db1e

View file

@ -2,6 +2,9 @@
GCC?=gcc
CFLAGS= -O0 -D_MINIX -D_POSIX_SOURCE
.if ${COMPILER_TYPE} == "gnu"
CFLAGS+= -D_NETBSD_SOURCE
.endif
CFLAGS-GCC= $(CFLAGS) -Wall -D_NETBSD_SOURCE
CFLAGS-GCCFPU= $(CFLAGS) -Wall -mhard-float
CFLAGS-GCCFPU= $(CFLAGS-GCC) -W -mhard-float