Module Name:    src
Committed By:   pooka
Date:           Sun Nov 29 23:46:41 UTC 2009

Modified Files:
        src/sys/arch/mips/include: Makefile.inc

Log Message:
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)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/mips/include/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/include/Makefile.inc
diff -u src/sys/arch/mips/include/Makefile.inc:1.7 src/sys/arch/mips/include/Makefile.inc:1.8
--- src/sys/arch/mips/include/Makefile.inc:1.7	Sun Dec 21 11:48:30 2008
+++ src/sys/arch/mips/include/Makefile.inc	Sun Nov 29 23:46:41 2009
@@ -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 -mno-abicalls -ffixed-23
+CFLAGS+=	-G 0 -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}

Reply via email to