diff options
author | jdp <jdp@FreeBSD.org> | 2004-11-01 21:42:14 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 2004-11-01 21:42:14 +0000 |
commit | 47e9f438eea2b5e3b77ab00c435007a277dd25e5 (patch) | |
tree | 2677bdbae5548c068aa0f9d18bc39b683e0faa31 /lang/ezm3/Makefile | |
parent | 8012e71f6410e67c8b56f1a6e673c2357616dead (diff) | |
download | FreeBSD-ports-47e9f438eea2b5e3b77ab00c435007a277dd25e5.zip FreeBSD-ports-47e9f438eea2b5e3b77ab00c435007a277dd25e5.tar.gz |
If -O[2-9] or -Os is in CFLAGS, override it with plain -O. The ezm3
build fails at elevated optimization levels due to aliasing bugs in
its elderly version of dtoa.c.
PR: ports/71456
Diffstat (limited to 'lang/ezm3/Makefile')
-rw-r--r-- | lang/ezm3/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/ezm3/Makefile b/lang/ezm3/Makefile index c1b666a..cd98d0a 100644 --- a/lang/ezm3/Makefile +++ b/lang/ezm3/Makefile @@ -54,6 +54,11 @@ WORDSIZE= 64 ENDIANESS= be .endif +# The build fails for -O2 or greater. Override it with plain -O. +.if defined(CFLAGS) && !empty(CFLAGS:M-O[2-9s]*) +CFLAGS+= -O +.endif + post-patch: .if ${ARCH} == "sparc64" && ${OSVERSION} < 502107 @${REINPLACE_CMD} -E -e 's|(^.*time_t.*=.*)int64_t;|\1int32_t;|' \ |