Subject: Re: machine hang building release & 'undefined token sbsize'
To: Julian Coleman <jdc@coris.org.uk>
From: Christopher SEKIYA <wileyc@rezrov.net>
List: port-sparc
Date: 10/30/2005 10:07:44
On Sat, Oct 29, 2005 at 10:54:30PM +0100, Julian Coleman wrote:
> So either -D_STANDALONE needs removing from sys/arch/sparc/stand/Makefile.inc
> as well, or only -D_STANDALONE needs moving outside the sparc64 definition
> in Makefile.inc.
Both the CPPFLAGS and the CFLAGS need to move out of the sparc64 conditional.
The patch below does the right thing.
--
-- Chris
GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5 938E 023E EEFB FEB9 DE7F)
--- Makefile.inc 30 Jul 2003 15:58:38 -0000 1.8
+++ Makefile.inc 30 Oct 2005 01:05:53 -0000
@@ -5,11 +5,11 @@
BINDIR= /usr/mdec
-.if ${MACHINE} == "sparc64"
-CPPFLAGS+= -DSTANDALONE -DSUN4U
-CPPFLAGS+= -I.
-
+CPPFLAGS+= -DSTANDALONE -I.
CFLAGS+= -msoft-float -ffreestanding
+
+.if ${MACHINE} == "sparc64"
+CPPFLAGS+= -DSUN4U
.endif
.endif