summaryrefslogtreecommitdiffstats
path: root/share
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 /share
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 'share')
-rw-r--r--share/mk/bsd.sys.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 64815b3..961aa7d 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -123,6 +123,7 @@ CFLAGS+= -Qunused-arguments
CFLAGS+= ${CFLAGS.clang}
CXXFLAGS+= ${CXXFLAGS.clang}
.else # !CLANG
+GCC_MS_EXTENSIONS= -fms-extensions
CFLAGS+= ${CFLAGS.gcc}
CXXFLAGS+= ${CXXFLAGS.gcc}
.endif # CLANG
OpenPOWER on IntegriCloud