$OpenBSD: gcc-libbind_cylink_Makefile_inc,v 1.1 2002/03/23 20:41:51 lebel Exp $
--- libbind/cylink/Makefile.inc.orig	Fri Apr  9 08:22:56 1999
+++ libbind/cylink/Makefile.inc	Sat Mar 23 15:19:48 2002
@@ -4,3 +4,10 @@
 
 SRCS+=  bn.c bn00.c lbn00.c lbnmem.c legal.c \
         bits.c dss.c math.c ctk_prime.c rand.c sha.c swap.c
+
+# from <bsd.lib.mk> to work around a bug in sparc64's gcc
+sha.o: sha.c
+	@echo "${COMPILE.c} ${.IMPSRC} -O0 -o ${.TARGET}"
+	@${COMPILE.c} ${.IMPSRC} -O0 -o ${.TARGET}.o
+	@${LD} -x -r ${.TARGET}.o -o ${.TARGET}
+	@rm -f ${.TARGET}.o
