diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-09-25 12:32:00 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-09-25 12:32:00 +0000 |
commit | 01101662345a74d000e13802377a21f673352ca4 (patch) | |
tree | b05cb084e87d3478f4bc863b77c6521b337ac4de /games/crafty | |
parent | 78cf5e127c967727f72625878988707e914b9b9f (diff) | |
download | pkgsrc-01101662345a74d000e13802377a21f673352ca4.tar.gz |
lower optimization level on sparc. With -O2, crafty segfaults immediately,
with -O1 it compiles and seems to run ok. This is on NetBSD-1.6/sparc,
gcc-2.95.3.
Diffstat (limited to 'games/crafty')
-rw-r--r-- | games/crafty/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/games/crafty/Makefile b/games/crafty/Makefile index 77a032f3385..224032b35b0 100644 --- a/games/crafty/Makefile +++ b/games/crafty/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2002/09/11 10:52:09 jlam Exp $ +# $NetBSD: Makefile,v 1.21 2002/09/25 12:32:00 dmcmahill Exp $ DISTNAME= crafty-18.15 CATEGORIES= games @@ -30,6 +30,8 @@ ALL_TARGET= netbsd-i386 . endif .elif !empty(MACHINE_PLATFORM:MNetBSD-*-sparc) ALL_TARGET= netbsd-sparc +# higher levels of optimization cause crafty to immediately segfault +CFLAGS:= ${CFLAGS:C/-O[0-9]*/-O1/} .elif !empty(MACHINE_PLATFORM:MNetBSD-*-*) ALL_TARGET= netbsd .elif !empty(MACHINE_PLATFORM:MSunOS-*-*) |