diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 25db152aa001..521bd4f78ada 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -132,7 +132,8 @@ CFLAGS+= ${DEBUG_FLAGS} CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer .endif -.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv" +.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv" || \ + ${MACHINE_CPUARCH} == "powerpc" CFLAGS+= -fPIC .endif