only compile sha.c with -O0 on sparc64, not the whole port.

This commit is contained in:
lebel 2002-03-23 19:52:08 +00:00
parent c96b34102a
commit 411b92381d
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.9 2002/03/04 18:31:46 lebel Exp $
# $OpenBSD: Makefile,v 1.10 2002/03/23 19:52:08 lebel Exp $
COMMENT= "GNU versions of common file management utilities"
COMMENT-ls= "colorized GNU 'ls'"
@ -24,7 +24,7 @@ MODULES= gettext
# XXX workaround gcc bugs on sparc64
.if ${MACHINE_ARCH:Msparc64}
CFLAGS+= -O0
PATCH_LIST= gcc-* patch-*
.endif
SEPARATE_BUILD= concurrent

View File

@ -0,0 +1,16 @@
$OpenBSD: gcc-lib_Makefile_in,v 1.1 2002/03/23 19:52:08 lebel Exp $
--- lib/Makefile.in.orig Sun Apr 29 04:25:37 2001
+++ lib/Makefile.in Sat Mar 23 14:39:34 2002
@@ -742,6 +742,12 @@ distclean-depend:
@AMDEP@CCDEPMODE = @CCDEPMODE@
+sha.o: sha.c
+@AMDEP@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@AMDEP@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ $(COMPILE) -c -O0 -o $@ `test -f $< || echo '$(srcdir)/'`$<
+
.c.o:
@AMDEP@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@