Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/stand Add -ffreestanding to CFLAGS. Remove t...



details:   https://anonhg.NetBSD.org/src/rev/79a4eda376d3
branches:  trunk
changeset: 520218:79a4eda376d3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Jan 05 01:22:21 2002 +0000

description:
Add -ffreestanding to CFLAGS.  Remove the GCC 2.8 check around
-Wno-main (always include -Wno-main).

diffstat:

 sys/arch/alpha/stand/Makefile.bootprogs |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (26 lines):

diff -r 0ff8f3f1af36 -r 79a4eda376d3 sys/arch/alpha/stand/Makefile.bootprogs
--- a/sys/arch/alpha/stand/Makefile.bootprogs   Sat Jan 05 00:54:07 2002 +0000
+++ b/sys/arch/alpha/stand/Makefile.bootprogs   Sat Jan 05 01:22:21 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.bootprogs,v 1.20 2001/12/30 16:32:29 lukem Exp $
+# $NetBSD: Makefile.bootprogs,v 1.21 2002/01/05 01:22:21 thorpej Exp $
 
 S=     ${.CURDIR}/../../../..
 
@@ -29,15 +29,12 @@
 AFLAGS+=       -DASSEMBLER
 # -I${.CURDIR}/../.. done by Makefile.inc
 CPPFLAGS+=     -nostdinc -I${.OBJDIR} -D_STANDALONE -I${S}
-CFLAGS=                -mno-fp-regs -g
+CFLAGS=                -ffreestanding -mno-fp-regs -g
 
 NETBSD_VERS!=sh ${.CURDIR}/../../../../conf/osrelease.sh
 CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"'
 
-HAVE_GCC28!=   ${CC} --version | egrep "^(2\.8|egcs)" ; echo 
-.if (${HAVE_GCC28} != "")
 CWARNFLAGS+=   -Wno-main
-.endif
 
 # if there is a 'version' file, add rule for vers.c and add it to SRCS
 # and CLEANFILES



Home | Main Index | Thread Index | Old Index