aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/mlx4/Makefile
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-12-30 20:34:53 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-12-30 20:34:53 +0000
commit86390f9444433b00296741d03d069a587ad8e4bf (patch)
tree7a016fe5f61c11d9f2c394240883db0585716120 /sys/modules/mlx4/Makefile
parent1b9906c7571ca5d001acf9d07100444c4d8f84da (diff)
downloadsrc-86390f9444433b00296741d03d069a587ad8e4bf.tar.gz
src-86390f9444433b00296741d03d069a587ad8e4bf.zip
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
Notes
Notes: svn path=/head/; revision=260102
Diffstat (limited to 'sys/modules/mlx4/Makefile')
-rw-r--r--sys/modules/mlx4/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/mlx4/Makefile b/sys/modules/mlx4/Makefile
index ce1ac5c60e11..e6f20a7692a5 100644
--- a/sys/modules/mlx4/Makefile
+++ b/sys/modules/mlx4/Makefile
@@ -26,4 +26,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}