Subject: kern/5481: 3 Makefiles define STANDALONE where _STANDALONE expected
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik Bertelsen <erik@q610.ebe.uni-c.dk>
List: netbsd-bugs
Date: 05/21/1998 22:19:46
>Number:         5481
>Category:       kern
>Synopsis:       3 Makefiles define STANDALONE where _STANDALONE expected
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 21 13:35:01 1998
>Last-Modified:
>Originator:     Erik Bertelsen
>Organization:
	
>Release:        NetBSD-current 20 May 1998
>Environment:
	
System: NetBSD q610.ebe.uni-c.dk 1.3E NetBSD 1.3E (Q610) #146: Wed May 20 23:09:12 MEST 1998 erik@q610.ebe.uni-c.dk:/home/src/sys/arch/mac68k/compile/Q610 mac68k


>Description:
	3 Makefiles in arch/{pmax,powerpc,macppc} define the preprocessor symbol
	STANDALONE, but the source files (e.g. in libsa) test for _STANDALONE.

	regards
	Erik Bertelsen

>How-To-Repeat:
>Fix:
Index: arch/macppc/stand/Makefile.inc
===================================================================
RCS file: /home/cvs-base/src/sys/arch/macppc/stand/Makefile.inc,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Makefile.inc
*** Makefile.inc	1998/05/20 19:01:26	1.1.1.1
--- Makefile.inc	1998/05/21 19:49:03
***************
*** 2,7 ****
  
  BINDIR=		/usr/mdec
  
! CPPFLAGS+=	-DSTANDALONE
  
  CFLAGS+=	-msoft-float
--- 2,7 ----
  
  BINDIR=		/usr/mdec
  
! CPPFLAGS+=	-D_STANDALONE
  
  CFLAGS+=	-msoft-float
Index: arch/pmax/stand/Makefile.booters
===================================================================
RCS file: /home/cvs-base/src/sys/arch/pmax/stand/Makefile.booters,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 Makefile.booters
*** Makefile.booters	1997/06/17 21:28:25	1.1.1.2
--- Makefile.booters	1998/05/21 20:02:02
***************
*** 7,13 ****
  # RELOC=80200000 allows for boot prog up to 1D0000 (1900544) bytes long
  RELOC=	80200000
  
! DEFS= -DSTANDALONE -DSMALL
  CFLAGS=	-O2 ${INCPATH} ${DEFS}
  AFLAGS=	-O2 ${INCPATH} ${DEFS} -D_LOCORE
  
--- 7,13 ----
  # RELOC=80200000 allows for boot prog up to 1D0000 (1900544) bytes long
  RELOC=	80200000
  
! DEFS= -D_STANDALONE -DSMALL
  CFLAGS=	-O2 ${INCPATH} ${DEFS}
  AFLAGS=	-O2 ${INCPATH} ${DEFS} -D_LOCORE
  
Index: arch/powerpc/stand/Makefile.inc
===================================================================
RCS file: /home/cvs-base/src/sys/arch/powerpc/stand/Makefile.inc,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Makefile.inc
*** Makefile.inc	1998/03/13 18:11:18	1.1.1.1
--- Makefile.inc	1998/05/21 20:02:42
***************
*** 2,7 ****
  
  BINDIR=		/usr/mdec
  
! CPPFLAGS+=	-DSTANDALONE
  
  CFLAGS+=	-msoft-float
--- 2,7 ----
  
  BINDIR=		/usr/mdec
  
! CPPFLAGS+=	-D_STANDALONE
  
  CFLAGS+=	-msoft-float
>Audit-Trail:
>Unformatted: