Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kmod.mk
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
# amd64 and mips use direct linking for kmod, all others use shared binaries | # amd64 and mips use direct linking for kmod, all others use shared binaries | ||||
.if ${MACHINE_CPUARCH} != amd64 && ${MACHINE_CPUARCH} != mips | .if ${MACHINE_CPUARCH} != amd64 && ${MACHINE_CPUARCH} != mips | ||||
__KLD_SHARED=yes | __KLD_SHARED=yes | ||||
.else | .else | ||||
__KLD_SHARED=no | __KLD_SHARED=no | ||||
.endif | .endif | ||||
ZLIB_CFLAGS+= -DZ_SOLO | |||||
.if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) | .if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing) | ||||
CFLAGS+= -fno-strict-aliasing | CFLAGS+= -fno-strict-aliasing | ||||
.endif | .endif | ||||
WERROR?= -Werror | WERROR?= -Werror | ||||
CFLAGS+= ${WERROR} | CFLAGS+= ${WERROR} | ||||
CFLAGS+= -D_KERNEL | CFLAGS+= -D_KERNEL | ||||
CFLAGS+= -DKLD_MODULE | CFLAGS+= -DKLD_MODULE | ||||
.if defined(MODULE_TIED) | .if defined(MODULE_TIED) | ||||
▲ Show 20 Lines • Show All 428 Lines • Show Last 20 Lines |