From a25b9da0249f7579e8661a537e5dc1e0fc8079e5 Mon Sep 17 00:00:00 2001 From: mrg Date: Sat, 26 Jul 2003 18:33:51 +0000 Subject: [PATCH] don't need -mno-half-pic with gcc3 --- sys/arch/hpcmips/stand/lcboot/Makefile | 7 +++++-- sys/arch/mips/include/Makefile.inc | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sys/arch/hpcmips/stand/lcboot/Makefile b/sys/arch/hpcmips/stand/lcboot/Makefile index 557bd4322498..044e180969cf 100644 --- a/sys/arch/hpcmips/stand/lcboot/Makefile +++ b/sys/arch/hpcmips/stand/lcboot/Makefile @@ -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 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") diff --git a/sys/arch/mips/include/Makefile.inc b/sys/arch/mips/include/Makefile.inc index 4259b727e4cf..2a4f6cfd6efa 100644 --- a/sys/arch/mips/include/Makefile.inc +++ b/sys/arch/mips/include/Makefile.inc @@ -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