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
This commit is contained in:
parent
10701d40cc
commit
d57552ab74
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user