Build riscv modules as PIC.

Submitted by:	Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp>
This commit is contained in:
Ruslan Bukin 2016-06-01 14:05:32 +00:00
parent b217eb9314
commit 8dbd4f302f

View File

@ -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