mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix this build for clang.
This commit is contained in:
parent
f97bf48a87
commit
87a1f43c79
1 changed files with 9 additions and 1 deletions
|
|
@ -1,12 +1,16 @@
|
|||
# $FreeBSD$
|
||||
|
||||
NO_MAN=1
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.PATH: ${.CURDIR}/../../../../sys/dev/ath/ath_hal
|
||||
|
||||
PROG= athstats
|
||||
|
||||
# Because of a clang preprocessor parser limitation causing this
|
||||
# to not compile, use gcc for now.
|
||||
CC= gcc
|
||||
#CC= gcc
|
||||
|
||||
SRCS= main.c statfoo.c athstats.c opt_ah.h ah_osdep.h
|
||||
|
||||
|
|
@ -17,6 +21,10 @@ CLEANFILES+= opt_ah.h
|
|||
CFLAGS+=-DATH_SUPPORT_ANI
|
||||
CFLAGS+=-DATH_SUPPORT_TDMA
|
||||
|
||||
.if (${COMPILER_TYPE} == "clang")
|
||||
CFLAGS+=-fbracket-depth=512
|
||||
.endif
|
||||
|
||||
opt_ah.h:
|
||||
echo "#define AH_DEBUG 1" > opt_ah.h
|
||||
echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
|
||||
|
|
|
|||
Loading…
Reference in a new issue