unbreak gcc4.5
This commit is contained in:
parent
28b2b22058
commit
dd5fdb3e67
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.50 2014/03/29 12:52:56 mlelstv Exp $
|
||||
# $NetBSD: Makefile,v 1.51 2014/04/19 00:04:12 christos Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include <bsd.sys.mk> # for HOST_SH
|
||||
@ -81,11 +81,16 @@ INCPATH += -I${.CURDIR}
|
||||
INCPATH += -I${.CURDIR}/../../.. -I${.OBJDIR}
|
||||
INCPATH += -I${.CURDIR}/../elf2bb
|
||||
|
||||
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 48
|
||||
AFLAGS += -mcpu=68030 -l
|
||||
CAFLAGS += -Wa,-l -Wa,-mcpu=68030 ${INCPATH}
|
||||
.else
|
||||
AFLAGS += -m68030 -l
|
||||
CAFLAGS += -Wa,-l -Wa,-m68030 ${INCPATH}
|
||||
.endif
|
||||
|
||||
COPTIM= -Os -fomit-frame-pointer -fcse-follow-jumps -fcse-skip-blocks
|
||||
COPTIM+= -Wa,-l -m68060 -Wa,-mcpu=68030 -fno-unwind-tables
|
||||
COPTIM+= -m68060 ${CAFLAGS} -fno-unwind-tables
|
||||
CFLAGS= -ffreestanding ${COPTIM} ${INCPATH} ${DEFS}
|
||||
CFLAGS+= -Werror
|
||||
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
|
||||
|
Loading…
Reference in New Issue
Block a user