build a file with -O0 on sparc64 (this only fixes the build, the program

itself is probably broken, as there are *lots* of 64bit issues)
This commit is contained in:
sturm 2003-11-21 14:50:41 +00:00
parent 526f8daee9
commit 2841e52f26
2 changed files with 18 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/10/25 18:33:27 pvalchev Exp $
# $OpenBSD: Makefile,v 1.2 2003/11/21 14:50:41 sturm Exp $
COMMENT= "electronic CAD system"
@ -22,6 +22,10 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.cs.berkeley.edu/~lazzaro/chipmunk/pickup/sources/
DIST_SUBDIR= chipmunk
.if ${MACHINE_ARCH} == "sparc64"
PATCH_LIST= patch-* gcc-*
.endif
WRKDIST= ${WRKDIR}
ALL_TARGET= makeonly
LDIR= ${LOCALBASE}/share/chipmunk/

View File

@ -0,0 +1,13 @@
$OpenBSD: gcc-psys_src_Makefile,v 1.1 2003/11/21 14:50:41 sturm Exp $
--- psys/src/Makefile.orig 2003-03-12 15:47:36.000000000 -0700
+++ psys/src/Makefile 2003-11-21 05:53:03.000000000 -0700
@@ -190,6 +190,9 @@ libp2c.a: $(OBJS)
p2clib.o: p2clib.c
$(CC) -c $(CFLAGS) $(P2CFLAGS) p2clib.c
+newasmlib.o:
+ ${CC} ${CFLAGS} -O0 -c newasmlib.c
+
clean:
-rm -f *.o libp2c.a ../libp2c.a