Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/riscv/conf Use -mcmodel=medany to get PICish code.
details: https://anonhg.NetBSD.org/src/rev/ac130d130bda
branches: trunk
changeset: 337036:ac130d130bda
user: matt <matt%NetBSD.org@localhost>
date: Tue Mar 31 01:05:52 2015 +0000
description:
Use -mcmodel=medany to get PICish code.
diffstat:
sys/arch/riscv/conf/Makefile.riscv | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r a1151e1479ff -r ac130d130bda sys/arch/riscv/conf/Makefile.riscv
--- a/sys/arch/riscv/conf/Makefile.riscv Tue Mar 31 00:22:50 2015 +0000
+++ b/sys/arch/riscv/conf/Makefile.riscv Tue Mar 31 01:05:52 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.riscv,v 1.1 2015/03/28 16:13:56 matt Exp $
+# $NetBSD: Makefile.riscv,v 1.2 2015/03/31 01:05:52 matt Exp $
# Makefile for NetBSD
#
@@ -38,7 +38,8 @@
## Note: -ffixed-?? must be kept in sync with cpu.h.
##
CPPFLAGS+= -D${MACHINE}
-CFLAGS+= -fPIC -Wa,-fno-pic -msoft-float
+CFLAGS+= -mcmodel=medany
+CFLAGS+= -msoft-float
.if !defined(LP64) || ${LP64} == "no"
CFLAGS+= -m32
AFLAGS+= -m32
Home |
Main Index |
Thread Index |
Old Index