NetBSD-Bugs archive

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

Re: kern/39265: CPUFLAGS is assigned twice into CFLAGS/AFLAGS when building a kernel



The following reply was made to PR kern/39265; it has been noted by GNATS.

From: "Juan Romero Pardines" <xtraeme%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/39265: CPUFLAGS is assigned twice into CFLAGS/AFLAGS when 
building a kernel
Date: Thu, 7 Aug 2008 10:53:53 +0200

 Looks like that CWARNFLAGS is redundant too. Please apply the following patch:
 
 Index: Makefile.kern.inc
 ===================================================================
 RCS file: /cvsroot/src/sys/conf/Makefile.kern.inc,v
 retrieving revision 1.113
 diff -u -r1.113 Makefile.kern.inc
 --- Makefile.kern.inc   21 Jun 2008 01:00:43 -0000      1.113
 +++ Makefile.kern.inc   7 Aug 2008 08:50:47 -0000
 @@ -83,8 +83,8 @@
  .endif
 
  CFLAGS+=       -ffreestanding -fno-zero-initialized-in-bss
 -CFLAGS+=       ${CPUFLAGS} ${DEBUG} ${COPTS} ${CWARNFLAGS}
 -AFLAGS+=       ${CPUFLAGS} -D_LOCORE -Wa,-fatal-warnings
 +CFLAGS+=       ${DEBUG} ${COPTS}
 +AFLAGS+=       -D_LOCORE -Wa,-fatal-warnings
 
  # XXX
  .if ${HAVE_GCC} > 3
 


Home | Main Index | Thread Index | Old Index