Subject: Re: buggy awk?
To: None <jarle@uninett.no>
From: Shin'ichiro TAYA <taya@ba2.so-net.ne.jp>
List: port-sparc64
Date: 10/19/2001 00:27:19
From: Jarle Greipsland <jarle@uninett.no>
Subject: Re: buggy awk?
Date: Thu, 18 Oct 2001 13:21:37 +0200 (CEST)
> matthew green <mrg@eterna.com.au> writes:
> > there is a PR about this... i believe building awk with -O0 works.
>
> Unfortunately not. Neither gawk nor the NetBSD awk function
> correctly, even when built with -O0 flags.
This is a bug of toolchain.
Apply this patch to src/usr.bin/awk/Makefile, build and install awk.
This will help you *at least* compiling NetBSD source tree.
Index: Makefile
===================================================================
RCS file: /export/NetBSD/NetBSD-cvs/main/basesrc/usr.bin/awk/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile 2001/01/23 22:24:20 1.2
+++ Makefile 2001/10/18 15:18:19
@@ -10,4 +10,8 @@
DPADD+= ${LIBM}
YHEADER= yes
+.if (${MACHINE_ARCH} == "sparc64")
+CFLAGS+= -msoft-quad-float
+.endif
+
.include <bsd.prog.mk>