Changeset View
Changeset View
Standalone View
Standalone View
head/sys/conf/kmod.mk
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | |||||
LDFLAGS+= --build-id=sha1 | LDFLAGS+= --build-id=sha1 | ||||
.endif | .endif | ||||
CFLAGS+= ${DEBUG_FLAGS} | CFLAGS+= ${DEBUG_FLAGS} | ||||
.if ${MACHINE_CPUARCH} == amd64 | .if ${MACHINE_CPUARCH} == amd64 | ||||
CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer | CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer | ||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv" | .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv" || \ | ||||
${MACHINE_CPUARCH} == "powerpc" | |||||
CFLAGS+= -fPIC | CFLAGS+= -fPIC | ||||
.endif | .endif | ||||
# Temporary workaround for PR 196407, which contains the fascinating details. | # Temporary workaround for PR 196407, which contains the fascinating details. | ||||
# Don't allow clang to use fpu instructions or registers in kernel modules. | # Don't allow clang to use fpu instructions or registers in kernel modules. | ||||
.if ${MACHINE_CPUARCH} == arm | .if ${MACHINE_CPUARCH} == arm | ||||
.if ${COMPILER_VERSION} < 30800 | .if ${COMPILER_VERSION} < 30800 | ||||
CFLAGS.clang+= -mllvm -arm-use-movt=0 | CFLAGS.clang+= -mllvm -arm-use-movt=0 | ||||
▲ Show 20 Lines • Show All 385 Lines • Show Last 20 Lines |