summaryrefslogtreecommitdiffstats
path: root/sys/ofed/drivers/net
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-30 20:34:53 +0000
committerdim <dim@FreeBSD.org>2013-12-30 20:34:53 +0000
commit076aa80e8fe1eabade669c7154184730631a9b41 (patch)
tree7a016fe5f61c11d9f2c394240883db0585716120 /sys/ofed/drivers/net
parenta54ccfd7d63be0285f5e4adcb2f0d0ee943fd02f (diff)
downloadFreeBSD-src-076aa80e8fe1eabade669c7154184730631a9b41.zip
FreeBSD-src-076aa80e8fe1eabade669c7154184730631a9b41.tar.gz
Similar to r260020, only use -fms-extensions with gcc, for all other
modules which require this flag to compile. Use a GCC_MS_EXTENSIONS variable, defined in kern.pre.mk, which can be used to easily supply the flag (or not), depending on the compiler type. MFC after: 3 days
Diffstat (limited to 'sys/ofed/drivers/net')
-rw-r--r--sys/ofed/drivers/net/mlx4/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/drivers/net/mlx4/Makefile b/sys/ofed/drivers/net/mlx4/Makefile
index bac8eb3..2e2ba35 100644
--- a/sys/ofed/drivers/net/mlx4/Makefile
+++ b/sys/ofed/drivers/net/mlx4/Makefile
@@ -30,5 +30,5 @@ opt_inet6.h:
.include <bsd.kmod.mk>
-CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
+CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
OpenPOWER on IntegriCloud