GC gcc < 4.8 logic.
-marm implies -mno-thumb, and -mno-thumb-interwork is a GCC default.
This commit is contained in:
parent
c3094abd94
commit
4b934fe6cc
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile.buildboot,v 1.21 2014/01/12 15:26:28 tsutsui Exp $
|
# $NetBSD: Makefile.buildboot,v 1.22 2017/02/22 12:44:21 maya Exp $
|
||||||
|
|
||||||
S?= ${.CURDIR}/../../../..
|
S?= ${.CURDIR}/../../../..
|
||||||
|
|
||||||
|
@ -35,11 +35,7 @@ CPPFLAGS+= -D_STANDALONE -DHIMEM=0x28000
|
||||||
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
|
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
|
||||||
CPPFLAGS+= -I${.CURDIR}/../lib
|
CPPFLAGS+= -I${.CURDIR}/../lib
|
||||||
CPPFLAGS+= ${ARM_APCS_FLAGS} -march=armv2
|
CPPFLAGS+= ${ARM_APCS_FLAGS} -march=armv2
|
||||||
.if ${HAVE_GCC} < 48
|
|
||||||
CPPFLAGS+= -mno-thumb -mno-thumb-interwork
|
|
||||||
.else
|
|
||||||
CPPFLAGS+= -marm
|
CPPFLAGS+= -marm
|
||||||
.endif
|
|
||||||
CFLAGS= -O2
|
CFLAGS= -O2
|
||||||
CFLAGS+= -ffreestanding -fno-unwind-tables
|
CFLAGS+= -ffreestanding -fno-unwind-tables
|
||||||
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
|
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile.buildboot,v 1.21 2014/01/12 15:26:28 tsutsui Exp $
|
# $NetBSD: Makefile.buildboot,v 1.22 2017/02/22 12:44:21 maya Exp $
|
||||||
|
|
||||||
S?= ${.CURDIR}/../../../..
|
S?= ${.CURDIR}/../../../..
|
||||||
|
|
||||||
|
@ -45,11 +45,7 @@ CPPFLAGS+= -D_STANDALONE
|
||||||
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
|
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
|
||||||
CPPFLAGS+= -I${.CURDIR}/../lib
|
CPPFLAGS+= -I${.CURDIR}/../lib
|
||||||
CPPFLAGS+= ${ARM_APCS_FLAGS} -march=armv3m
|
CPPFLAGS+= ${ARM_APCS_FLAGS} -march=armv3m
|
||||||
.if ${HAVE_GCC} < 48
|
|
||||||
CPPFLAGS+= -mno-thumb -mno-thumb-interwork
|
|
||||||
.else
|
|
||||||
CPPFLAGS+= -marm
|
CPPFLAGS+= -marm
|
||||||
.endif
|
|
||||||
CPUFLAGS=
|
CPUFLAGS=
|
||||||
CFLAGS= -O2
|
CFLAGS= -O2
|
||||||
CFLAGS+= -ffreestanding -fno-unwind-tables
|
CFLAGS+= -ffreestanding -fno-unwind-tables
|
||||||
|
|
Loading…
Reference in New Issue