test: define NETBSD_SOURCE for gcc/clang
This commit is contained in:
parent
530bd5d486
commit
6d1095db1e
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
GCC?=gcc
|
GCC?=gcc
|
||||||
CFLAGS= -O0 -D_MINIX -D_POSIX_SOURCE
|
CFLAGS= -O0 -D_MINIX -D_POSIX_SOURCE
|
||||||
|
.if ${COMPILER_TYPE} == "gnu"
|
||||||
|
CFLAGS+= -D_NETBSD_SOURCE
|
||||||
|
.endif
|
||||||
CFLAGS-GCC= $(CFLAGS) -Wall -D_NETBSD_SOURCE
|
CFLAGS-GCC= $(CFLAGS) -Wall -D_NETBSD_SOURCE
|
||||||
CFLAGS-GCCFPU= $(CFLAGS) -Wall -mhard-float
|
CFLAGS-GCCFPU= $(CFLAGS) -Wall -mhard-float
|
||||||
CFLAGS-GCCFPU= $(CFLAGS-GCC) -W -mhard-float
|
CFLAGS-GCCFPU= $(CFLAGS-GCC) -W -mhard-float
|
||||||
|
|
Loading…
Reference in a new issue