summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-06-13 21:54:21 +0000
committerpeter <peter@FreeBSD.org>2003-06-13 21:54:21 +0000
commitbc201df6b8f9989c329b7fd21bb5bcccfba9c56b (patch)
tree95fe625d7c0389cb16f005669be7bd9c1f4653aa /share/mk/bsd.sys.mk
parent95a96dcf7660df798f8f692c4f35a3d0afa2d788 (diff)
downloadFreeBSD-src-bc201df6b8f9989c329b7fd21bb5bcccfba9c56b.zip
FreeBSD-src-bc201df6b8f9989c329b7fd21bb5bcccfba9c56b.tar.gz
We cannot use c99 on amd64 either due to lack of alloca(). libc:strptime()
uses alloca() and alloca is impossible to implement as a callable function on amd64. It has to be a compiler builtin. Note that the bigger problem is that libc is not c99 clean internally.
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index e8affb9..10c28c4 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -8,9 +8,10 @@
# for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
+.if ${MACHINE_ARCH} == "i386"
CSTD ?= c99
-.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc"
+.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc" || \
+ ${MACHINE_ARCH} == "amd64"
# Can't use "c99" below due to lack of alloca.S for non-i386 platforms.
CSTD ?= gnu99
.else
OpenPOWER on IntegriCloud