diff options
author | peter <peter@FreeBSD.org> | 2003-06-13 21:54:21 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-06-13 21:54:21 +0000 |
commit | bc201df6b8f9989c329b7fd21bb5bcccfba9c56b (patch) | |
tree | 95fe625d7c0389cb16f005669be7bd9c1f4653aa /share/mk | |
parent | 95a96dcf7660df798f8f692c4f35a3d0afa2d788 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | share/mk/bsd.sys.mk | 5 |
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 |