summaryrefslogtreecommitdiffstats
path: root/lang/ezm3/Makefile
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2004-11-01 21:42:14 +0000
committerjdp <jdp@FreeBSD.org>2004-11-01 21:42:14 +0000
commit47e9f438eea2b5e3b77ab00c435007a277dd25e5 (patch)
tree2677bdbae5548c068aa0f9d18bc39b683e0faa31 /lang/ezm3/Makefile
parent8012e71f6410e67c8b56f1a6e673c2357616dead (diff)
downloadFreeBSD-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/Makefile5
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;|' \
OpenPOWER on IntegriCloud