Source-Changes-HG archive

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

[src/trunk]: src/share/mk VAX kernel modules need to be built with -fno-pic



details:   https://anonhg.NetBSD.org/src/rev/d2c0bcfc7a85
branches:  trunk
changeset: 767290:d2c0bcfc7a85
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jul 14 18:12:35 2011 +0000

description:
VAX kernel modules need to be built with -fno-pic

diffstat:

 share/mk/bsd.kmodule.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 809935c09160 -r d2c0bcfc7a85 share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Thu Jul 14 17:29:43 2011 +0000
+++ b/share/mk/bsd.kmodule.mk   Thu Jul 14 18:12:35 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.kmodule.mk,v 1.30 2011/06/20 07:44:00 mrg Exp $
+#      $NetBSD: bsd.kmodule.mk,v 1.31 2011/07/14 18:12:35 matt Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -33,6 +33,8 @@
 CFLAGS+=       -mlong-calls
 .elif ${MACHINE_CPU} == "powerpc"
 CFLAGS+=       -mlongcall
+.elif ${MACHINE_CPU} == "vax"
+CFLAGS+=       -fno-pic
 .endif
 
 # evbppc needs some special help



Home | Main Index | Thread Index | Old Index