Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/include Don't build rump kernel with -mno-abic...



details:   https://anonhg.NetBSD.org/src/rev/22c7e3278d23
branches:  trunk
changeset: 749435:22c7e3278d23
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Nov 29 23:46:41 2009 +0000

description:
Don't build rump kernel with -mno-abicalls, because it's effectively
"no pic".
(should be used only for shared lib rump kernel, but this is just
bandaid for now)

diffstat:

 sys/arch/mips/include/Makefile.inc |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r b334c1813017 -r 22c7e3278d23 sys/arch/mips/include/Makefile.inc
--- a/sys/arch/mips/include/Makefile.inc        Sun Nov 29 21:32:50 2009 +0000
+++ b/sys/arch/mips/include/Makefile.inc        Sun Nov 29 23:46:41 2009 +0000
@@ -1,9 +1,15 @@
-# $NetBSD: Makefile.inc,v 1.7 2008/12/21 11:48:30 ad Exp $
+# $NetBSD: Makefile.inc,v 1.8 2009/11/29 23:46:41 pooka Exp $
+
+CFLAGS+=       -G 0 -ffixed-23
 
-CFLAGS+=       -G 0 -mno-abicalls -ffixed-23
+# this should really be !(RUMPKERNEL && target=PIC)
+.if !defined(RUMPKERNEL)
+CFLAGS+=       -mno-abicalls
+AFLAGS+=       -mno-abicalls
+.endif
 
 .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
 CFLAGS+=       -msym32
 .endif
 
-AFLAGS+=       -mno-abicalls -x assembler-with-cpp -traditional-cpp ${AOPTS}
+AFLAGS+=       -x assembler-with-cpp -traditional-cpp ${AOPTS}



Home | Main Index | Thread Index | Old Index