summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-01-09 22:40:51 +0000
committerdim <dim@FreeBSD.org>2014-01-09 22:40:51 +0000
commit999774a8ef8eaa6132d3de64eebac307c223d29c (patch)
tree7eab0649e94714452b9f2ba7ce6a23907c0a0b3e /sys/ofed
parent837513035e696dea0a4ef7dc0fe5418f89bea6e1 (diff)
downloadFreeBSD-src-999774a8ef8eaa6132d3de64eebac307c223d29c.zip
FreeBSD-src-999774a8ef8eaa6132d3de64eebac307c223d29c.tar.gz
MFC r260102:
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 r260322: In addition to r260102, also define GCC_MS_EXTENSIONS in bsd.sys.mk, since kernel module builds do not use kern.pre.mk.
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/drivers/infiniband/hw/mlx4/Makefile2
-rw-r--r--sys/ofed/drivers/net/mlx4/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/ofed/drivers/infiniband/hw/mlx4/Makefile b/sys/ofed/drivers/infiniband/hw/mlx4/Makefile
index cbfa7a4..6b03ea3 100644
--- a/sys/ofed/drivers/infiniband/hw/mlx4/Makefile
+++ b/sys/ofed/drivers/infiniband/hw/mlx4/Makefile
@@ -28,4 +28,4 @@ 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}
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