diff options
author | cjep <cjep@pkgsrc.org> | 2002-06-06 20:26:35 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2002-06-06 20:26:35 +0000 |
commit | 2b80977ee5b8d16822c57b855d3f44a91f371f10 (patch) | |
tree | cb4673f80a37c71f673ec8c85ab4567c1f1b3e3d /emulators/stella | |
parent | afad040e21ace39c45b556cf9cf901f10ab644d0 (diff) | |
download | pkgsrc-2b80977ee5b8d16822c57b855d3f44a91f371f10.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/Makefile | 11 |
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 |