diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-30 20:34:53 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-30 20:34:53 +0000 |
commit | 86390f9444433b00296741d03d069a587ad8e4bf (patch) | |
tree | 7a016fe5f61c11d9f2c394240883db0585716120 /sys/ofed | |
parent | 1b9906c7571ca5d001acf9d07100444c4d8f84da (diff) | |
download | src-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/ofed')
-rw-r--r-- | sys/ofed/drivers/infiniband/hw/mlx4/Makefile | 2 | ||||
-rw-r--r-- | sys/ofed/drivers/net/mlx4/Makefile | 2 |
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 cbfa7a449328..6b03ea319128 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 bac8eb31fd14..2e2ba35d7bb5 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} |