Author: br
Date: Wed Jun  1 14:05:32 2016
New Revision: 301124
URL: https://svnweb.freebsd.org/changeset/base/301124

Log:
  Build riscv modules as PIC.
  
  Submitted by: Yukishige Shibata <y-shi...@mtd.biglobe.ne.jp>

Modified:
  head/sys/conf/kmod.mk

Modified: head/sys/conf/kmod.mk
==============================================================================
--- head/sys/conf/kmod.mk       Wed Jun  1 14:03:13 2016        (r301123)
+++ head/sys/conf/kmod.mk       Wed Jun  1 14:05:32 2016        (r301124)
@@ -130,7 +130,7 @@ CFLAGS+=    ${DEBUG_FLAGS}
 CFLAGS+=       -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
 .endif
 
-.if ${MACHINE_CPUARCH} == "aarch64"
+.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv"
 CFLAGS+=       -fPIC
 .endif
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to