summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-09-02 14:20:40 +0000
committerart <art@openbsd.org>2001-09-02 14:20:40 +0000
commitcc87ef7cb55eb0ff10438acde86fd9036733d1d9 (patch)
tree7357037e803c9104d61b3ae54c4907876b4ff7bf
parentTypo; addresses pr/2038 from tim@robbins.dropbear.id.au (diff)
downloadwireguard-openbsd-cc87ef7cb55eb0ff10438acde86fd9036733d1d9.tar.xz
wireguard-openbsd-cc87ef7cb55eb0ff10438acde86fd9036733d1d9.zip
gcc hangs when compiling sha1 on sparc64, workaround.
-rw-r--r--lib/libc/hash/Makefile.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/hash/Makefile.inc b/lib/libc/hash/Makefile.inc
index 699ebb0d008..20528d524a4 100644
--- a/lib/libc/hash/Makefile.inc
+++ b/lib/libc/hash/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.7 1999/11/17 05:22:40 millert Exp $
+# $OpenBSD: Makefile.inc,v 1.8 2001/09/02 14:20:40 art Exp $
# hash functions
.PATH: ${LIBCSRCDIR}/hash
@@ -11,3 +11,8 @@ MLINKS+=sha1.3 SHA1Transform.3
MLINKS+=rmd160.3 RMD160Init.3 rmd160.3 RMD160Update.3 rmd160.3 RMD160Final.3
MLINKS+=rmd160.3 RMD160End.3 rmd160.3 RMD160File.3 rmd160.3 RMD160Data.3
MLINKS+=rmd160.3 RMD160Transform.3
+
+.if (${MACHINE_ARCH} == "sparc64")
+sha1.o:
+ ${CC} ${CFLAGS} ${CPPFLAGS} -O0 -c ${.IMPSRC}
+.endif