Add -ffreestanding to CFLAGS. Remove the GCC 2.8 check around

-Wno-main (always include -Wno-main).
This commit is contained in:
thorpej 2002-01-05 01:22:21 +00:00
parent a9309d4f18
commit 6e17c402e6
1 changed files with 2 additions and 5 deletions

View File

@ -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 @@ realall: machine-links ${PROG}
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