mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use normal CWARNFLAGS and defines when compiling on FreeBSD.
This commit is contained in:
parent
9c77d65883
commit
acd26a4b7a
1 changed files with 6 additions and 2 deletions
|
|
@ -61,9 +61,13 @@ INCLUDES+= -I$S/../include
|
|||
INCLUDES+= -I/usr/include
|
||||
.endif
|
||||
|
||||
COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -D__ELF__ -D__FreeBSD__ -include opt_global.h -msoft-float
|
||||
COPTS= ${INCLUDES} ${IDENT} -D_KERNEL -include opt_global.h
|
||||
_OS!=uname
|
||||
.if ${_OS} != "FreeBSD"
|
||||
CWARNFLAGS=-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
|
||||
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
|
||||
COPTS+= -D__ELF__ -D__FreeBSD__ -msoft-float
|
||||
.endif
|
||||
CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS}
|
||||
|
||||
# XXX LOCORE means "don't declare C stuff" not "for locore.s".
|
||||
|
|
|
|||
Loading…
Reference in a new issue