summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2016-03-15 05:17:31 +0000
committerimp <imp@FreeBSD.org>2016-03-15 05:17:31 +0000
commitc39a40d212a075104c87318e68b3263b92bc2033 (patch)
tree3985120c396fdb95aca581234938256581d5634a /sys/boot/efi
parente9a62530aa2a12318895252d7de4b3e6de326263 (diff)
downloadFreeBSD-src-c39a40d212a075104c87318e68b3263b92bc2033.zip
FreeBSD-src-c39a40d212a075104c87318e68b3263b92bc2033.tar.gz
ms_abi is supported with gcc 4.5 or newer, so build it with gcc if it
is 4.5 or newer.
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/efi/Makefile b/sys/boot/efi/Makefile
index 94a975a..21da86f 100644
--- a/sys/boot/efi/Makefile
+++ b/sys/boot/efi/Makefile
@@ -2,8 +2,9 @@
.include <src.opts.mk>
-# In-tree GCC does not support __attribute__((ms_abi)).
-.if ${COMPILER_TYPE} != "gcc"
+# In-tree GCC does not support __attribute__((ms_abi)), but gcc newer
+# than 4.5 supports it.
+.if ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} >= 404500
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
.if ${MK_FDT} != "no"
@@ -17,7 +18,6 @@ SUBDIR+= fdt
SUBDIR+= libefi loader boot1
.endif
-.endif # ${COMPILER_TYPE} != "gcc"
+.endif # ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} >= 404500
.include <bsd.subdir.mk>
-
OpenPOWER on IntegriCloud