Force -O1 when compiling this, it doesn't work with -O2 (need to investigate

later)
This commit is contained in:
martin 2014-05-24 07:38:42 +00:00
parent d998acdb58
commit c93b05fd84
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.41 2013/08/21 06:15:41 matt Exp $ # $NetBSD: Makefile,v 1.42 2014/05/24 07:38:42 martin Exp $
S= ${.CURDIR}/../../../.. S= ${.CURDIR}/../../../..
@ -11,6 +11,8 @@ SRCS= srt0.S boot.c devopen.c conf.c autoconf.c netio.c rom.c romread.S \
LIBC= LIBC=
CLEANFILES+=${PROG} ${PROG}.sym vers.c CLEANFILES+=${PROG} ${PROG}.sym vers.c
# XXX - hack, doesn't work with -O2 and gcc 4.8
CFLAGS+=-O1
CPPFLAGS+=-DSUPPORT_BOOTPARAMS -DSUPPORT_BOOTP -DSUPPORT_DHCP -D_STANDALONE \ CPPFLAGS+=-DSUPPORT_BOOTPARAMS -DSUPPORT_BOOTP -DSUPPORT_DHCP -D_STANDALONE \
-DNO_MID_CHECK -DNO_MID_CHECK
#CPPFLAGS+=-DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DDEV_DEBUG \ #CPPFLAGS+=-DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DDEV_DEBUG \