aboutsummaryrefslogtreecommitdiff
path: root/lang/ezm3
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>2004-11-01 21:42:14 +0000
committerJohn Polstra <jdp@FreeBSD.org>2004-11-01 21:42:14 +0000
commit73ceb363b8e4f59b1b819e53bda8fb5daf0b685f (patch)
tree13ffbde493ebe1662c0560b346c20b99f80e06cf /lang/ezm3
parent174d059edfef45262a8e2fd8e16820148fb2a3f0 (diff)
downloadports-73ceb363b8e4f59b1b819e53bda8fb5daf0b685f.tar.gz
ports-73ceb363b8e4f59b1b819e53bda8fb5daf0b685f.zip
Notes
Diffstat (limited to 'lang/ezm3')
-rw-r--r--lang/ezm3/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/ezm3/Makefile b/lang/ezm3/Makefile
index c1b666a26cf4..cd98d0a3e162 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;|' \