don't need -mno-half-pic with gcc3

This commit is contained in:
mrg 2003-07-26 18:33:51 +00:00
parent 9759912dd6
commit a25b9da024
2 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/06/24 12:27:03 igy Exp $
# $NetBSD: Makefile,v 1.3 2003/07/26 18:33:51 mrg Exp $
.include <bsd.own.mk>
ROMICE?= no
@ -28,7 +28,10 @@ AFLAGS+= -D_LOCORE -D_KERNEL
AFLAGS+= -x assembler-with-cpp -traditional-cpp -mips2 -mno-abicalls
INCLUDES= -I${.OBJDIR} -I${S} -I${S}/arch
CPPFLAGS+= ${INCLUDES} -nostdinc -D_STANDALONE -DHEAP_LIMIT=0x8002ffff
CFLAGS+= -mips2 -EL -mno-abicalls -mno-half-pic -ffreestanding -mmemcpy
CFLAGS+= -mips2 -EL -mno-abicalls -ffreestanding -mmemcpy
.if ${USE_TOOLS_TOOLCHAIN} == "yes"
CFLAGS+= -mno-half-pic
.endif
LD_SCRIPT= lcboot.ldscript
.if defined(ROMICE) && (${ROMICE} == "yes")

View File

@ -1,7 +1,10 @@
# $NetBSD: Makefile.inc,v 1.1 2001/10/05 15:36:46 simonb Exp $
# $NetBSD: Makefile.inc,v 1.2 2003/07/26 18:33:52 mrg Exp $
# Standard kernel compile flags
CFLAGS += -G 0 -mno-abicalls -mno-half-pic
CFLAGS += -G 0 -mno-abicalls
.if ${USE_TOOLS_TOOLCHAIN} == "yes"
CFLAGS += -mno-half-pic
.endif
# Needed so modules loaded in KSEG2 can make calls to KSEG0
CFLAGS += -mlong-calls