Make x68k/stand compile with GCC8. Tested with XEiJ.

This commit is contained in:
rin 2020-08-10 07:00:49 +00:00
parent e45d30c746
commit 2c862b66b0
4 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,3 @@
# $NetBSD: Makefile.inc,v 1.2 2013/08/12 16:34:05 joerg Exp $
# $NetBSD: Makefile.inc,v 1.3 2020/08/10 07:00:49 rin Exp $
DBG=-Os -fno-unwind-tables
DBG=-Os -fno-unwind-tables -Wno-attributes

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.33 2020/01/18 05:46:25 isaki Exp $
# $NetBSD: Makefile,v 1.34 2020/08/10 07:00:49 rin Exp $
NOMAN= # defined
@ -40,7 +40,7 @@ CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
CPPFLAGS+= -DRTC_OFFSET=${RTC_OFFSET}
CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
#CPPFLAGS+= -DDEBUG
CFLAGS= -Wno-main -Os -m68020-60
CFLAGS= -Wno-main -Os -m68020-60 -Wno-attributes
LINKFLAGS= -N -static -T ${.CURDIR}/../boot/boot.ldscript
LINKFLAGS+= --defsym=TEXTADDR=$(TEXT)
ELF2AOUT_OPTS= -O

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.18 2020/02/01 08:08:15 isaki Exp $
# $NetBSD: Makefile,v 1.19 2020/08/10 07:00:49 rin Exp $
NOMAN= # defined
.include <bsd.own.mk>
@ -23,7 +23,7 @@ CPPFLAGS+= -nostdinc -I${KERN} -I${.CURDIR} -I.
CPPFLAGS+= -I${.CURDIR}/../libiocs
CPPFLAGS+= -DTEXTADDR="0x${TEXT}"
CPPFLAGS+= -DBOOT=\"${BOOT}\" -DBOOT_VERS=\"${VERSION}\"
CFLAGS= -Wno-main -Os -m68000
CFLAGS= -Wno-main -Os -m68000 -Wno-attributes
AFLAGS+= -m68000
LINKFLAGS= -N -static -Ttext ${TEXT}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.xxboot,v 1.12 2020/01/28 12:02:02 isaki Exp $
# $NetBSD: Makefile.xxboot,v 1.13 2020/08/10 07:00:49 rin Exp $
NOMAN= # defined
@ -29,7 +29,7 @@ SRCS= boot.S bootmain.c conf.c consio1.c $(DEVDRV).c
.include "${S}/conf/newvers_stand.mk"
CFLAGS= -Os -fomit-frame-pointer -fno-unwind-tables
CFLAGS= -Os -fomit-frame-pointer -fno-unwind-tables -Wno-attributes
#CFLAGS+= -Wall
CPPFLAGS+= -D_STANDALONE
CPPFLAGS+= -DTEXTADDR="$(TEXT)" -DBOOT_TEXTADDR="$(BOOT_TEXT)"