Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/bind/lib Disable optimization when compiling sha.c.



details:   https://anonhg.NetBSD.org/src/rev/a4db4513d792
branches:  trunk
changeset: 502967:a4db4513d792
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jan 28 00:42:20 2001 +0000

description:
Disable optimization when compiling sha.c.

This is a know bug (see our libc sha1 implementation and the associated
doc/hacks entry) with the toolchain used on sparc64 currently.

XXX - somebody please check/fix OBJDIR handling for this
XXX - somebody please fix the ****** toolchain

diffstat:

 usr.sbin/bind/lib/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 0b547aeb4a78 -r a4db4513d792 usr.sbin/bind/lib/Makefile
--- a/usr.sbin/bind/lib/Makefile        Sun Jan 28 00:37:52 2001 +0000
+++ b/usr.sbin/bind/lib/Makefile        Sun Jan 28 00:42:20 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.12 2001/01/27 08:14:43 itojun Exp $
+#      $NetBSD: Makefile,v 1.13 2001/01/28 00:42:20 martin Exp $
 
 .include <bsd.own.mk>
 
@@ -84,6 +84,12 @@
        kifulprv.c kipkcrpr.c kirsacrt.c kirsapub.c random.c
 
 
+.if ${MACHINE_ARCH} == "sparc64"
+sha.o: sha.c
+       @echo "Compiling without optimization due to toolchain bugs"
+       ${CC} -o ${.OBJDIR}/sha.o ${CPPFLAGS} -c ${BIND_CRYPTO_DIST_DIR}/lib/cylink/sha.c
+.endif
+
 # only needed during build
 libinstall::
 



Home | Main Index | Thread Index | Old Index