1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

Make sure the compiler flag to get cxgbe(4) to compile with gcc is used

only when gcc is being used.  This is what r277225 should have been.

Suggested by:	dim@
This commit is contained in:
Navdeep Parhar 2015-01-24 04:41:14 +00:00
parent 01fc52e76d
commit 7cf3e8e4c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277637
2 changed files with 3 additions and 2 deletions

View File

@ -1141,7 +1141,7 @@ dev/cxgb/sys/uipc_mvec.c optional cxgb pci \
dev/cxgb/cxgb_t3fw.c optional cxgb cxgb_t3fw \
compile-with "${NORMAL_C} -I$S/dev/cxgb"
dev/cxgbe/t4_mp_ring.c optional cxgbe pci \
compile-with "${NORMAL_C} -I$S/dev/cxgbe -fms-extensions"
compile-with "${NORMAL_C} -I$S/dev/cxgbe ${GCC_MS_EXTENSIONS}"
dev/cxgbe/t4_main.c optional cxgbe pci \
compile-with "${NORMAL_C} -I$S/dev/cxgbe"
dev/cxgbe/t4_netmap.c optional cxgbe pci \

View File

@ -23,6 +23,7 @@ SRCS+= t4_tracer.c
# Provide the timestamp of a packet in its header mbuf.
#CFLAGS+= -DT4_PKT_TIMESTAMP
CFLAGS+= -I${CXGBE} -fms-extensions
CFLAGS+= -I${CXGBE}
.include <bsd.kmod.mk>
CFLAGS+= ${GCC_MS_EXTENSIONS}