Build riscv modules as PIC.
Submitted by: Yukishige Shibata <y-shibat@mtd.biglobe.ne.jp>
This commit is contained in:
parent
b217eb9314
commit
8dbd4f302f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user