diff options
author | ngie <ngie@FreeBSD.org> | 2016-07-07 22:44:23 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-07-07 22:44:23 +0000 |
commit | d57552ab742e86f620cbd11ec9917dc6f2d39fb1 (patch) | |
tree | 5a81163011bf27099b51ee8011438fb19606e2a6 /sys/conf | |
parent | 10701d40cc37d89e1a105f5fc5bf6c4a21fabf67 (diff) | |
download | FreeBSD-src-d57552ab742e86f620cbd11ec9917dc6f2d39fb1.zip FreeBSD-src-d57552ab742e86f620cbd11ec9917dc6f2d39fb1.tar.gz |
Do not use -fformat-extensions with non-base versions of gcc
Ports versions of gcc do not have -fformat-extensions support.
This unbreaks compiling the kernel/modules with non-base gcc (4.8,
5.0, etc) if MK_FORMAT_EXTENSIONS=yes (the default).
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D7150
Reviewed by: bdrewery
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index f561f8a..0eb50e6 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -62,7 +62,7 @@ CWARNEXTRA?= -Wno-uninitialized FORMAT_EXTENSIONS= -Wno-format .elif ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600 FORMAT_EXTENSIONS= -D__printf__=__freebsd_kprintf__ -.else +.elif ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} == 40201 FORMAT_EXTENSIONS= -fformat-extensions .endif |