svn commit: r277637 - in head/sys: conf modules/cxgbe/if_cxgbe

Navdeep Parhar np at FreeBSD.org
Sat Jan 24 04:41:16 UTC 2015


Author: np
Date: Sat Jan 24 04:41:14 2015
New Revision: 277637
URL: https://svnweb.freebsd.org/changeset/base/277637

Log:
  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@

Modified:
  head/sys/conf/files
  head/sys/modules/cxgbe/if_cxgbe/Makefile

Modified: head/sys/conf/files
==============================================================================
--- head/sys/conf/files	Sat Jan 24 03:04:08 2015	(r277636)
+++ head/sys/conf/files	Sat Jan 24 04:41:14 2015	(r277637)
@@ -1141,7 +1141,7 @@ dev/cxgb/sys/uipc_mvec.c	optional cxgb p
 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 \

Modified: head/sys/modules/cxgbe/if_cxgbe/Makefile
==============================================================================
--- head/sys/modules/cxgbe/if_cxgbe/Makefile	Sat Jan 24 03:04:08 2015	(r277636)
+++ head/sys/modules/cxgbe/if_cxgbe/Makefile	Sat Jan 24 04:41:14 2015	(r277637)
@@ -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}


More information about the svn-src-all mailing list