summaryrefslogtreecommitdiff
path: root/emulators/stella
diff options
context:
space:
mode:
authorcjep <cjep>2002-06-06 20:26:35 +0000
committercjep <cjep>2002-06-06 20:26:35 +0000
commit28c928528f162f45e860e42bc66c4e0fc3be5477 (patch)
treecb4673f80a37c71f673ec8c85ab4567c1f1b3e3d /emulators/stella
parent20ea61408ff7f9ea2530117c935e4235ae8017e5 (diff)
downloadpkgsrc-28c928528f162f45e860e42bc66c4e0fc3be5477.tar.gz
Turn off optimisation on NetBSD/arm platforms, otherwise we hit an
optimisation loop. The first problem is at: c++ -c -O2 -fno-rtti -I. -I../emucore -I../emucore/m6502/src \ -I../emucore/m6502/src/bspf/src -I../ui/x11 -I../ui/sound \ -I/usr/X11R6/include -DBSPF_UNIX ../emucore/m6502/src/M6502.cxx XXX It would probably be best to turn off optimisation on the relevant files
Diffstat (limited to 'emulators/stella')
-rw-r--r--emulators/stella/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/emulators/stella/Makefile b/emulators/stella/Makefile
index e510a06a8c2..a6e868fcb93 100644
--- a/emulators/stella/Makefile
+++ b/emulators/stella/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2002/03/30 13:01:54 cjep Exp $
+# $NetBSD: Makefile,v 1.5 2002/06/06 20:26:35 cjep Exp $
DISTNAME= stella-1.1-src
PKGNAME= stella-1.1
@@ -14,12 +14,15 @@ USE_X11= yes
WRKSRC= ${WRKDIR}/${PKGNAME}/src/build
MAKEFILE= makefile
ALL_TARGET= unix-x
-MAKE_ENV= CXXFLAGS="${CXXFLAGS} -fno-rtti"
-.if (${MACHINE_ARCH} == arm32)
- MAKE_ENV= CXXFLAGS="-fno-rtti"
+.if (${MACHINE_ARCH} == arm32 || ${MACHINE_ARCH} == arm)
+.if (${CXXFLAGS:M-O2} == "-O2")
+CXXFLAGS:= ${CXXFLAGS:S/-O2/-O0/}
+.endif
.endif
+MAKE_ENV= CXXFLAGS="${CXXFLAGS} -fno-rtti"
+
post-build:
@cd ${WRKSRC}/../ui/sound && ${MAKE} oss