mirror of
https://github.com/opnsense/src.git
synced 2026-04-27 09:06:49 -04:00
Remove the hard-coded dependency on HYPERV being only x86. Instead, 100% rely on MK_HYPERV. It's always right (since it's marked BROKEN (so set to "no") on architectures we don't support). Sponsored by: Netflix Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D38306
24 lines
500 B
Makefile
24 lines
500 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${LIBC_SRCTOP}/x86/sys
|
|
|
|
SRCS+= \
|
|
__vdso_gettc.c \
|
|
pkru.c \
|
|
sched_getcpu_x86.c
|
|
|
|
MAN+= \
|
|
pkru.3
|
|
|
|
# Note: vdso support for hyperv only on amd64
|
|
.if ${MACHINE_CPUARCH} == "amd64" && ${MK_HYPERV} != "no"
|
|
CFLAGS+= -DWANT_HYPERV
|
|
.endif
|
|
# We can't use sanitizer instrumentation on ifuncs called during sanitizer
|
|
# runtime startup.
|
|
.if ${MK_ASAN} != "no"
|
|
CFLAGS.__vdso_gettc.c+=-fno-sanitize=address
|
|
.endif
|
|
.if ${MK_UBSAN} != "no"
|
|
CFLAGS.__vdso_gettc.c+=-fno-sanitize=undefined
|
|
.endif
|