mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 14:49:36 -04:00
Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32901
23 lines
454 B
Makefile
23 lines
454 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${LIBC_SRCTOP}/x86/sys
|
|
|
|
SRCS+= \
|
|
__vdso_gettc.c \
|
|
pkru.c \
|
|
sched_getcpu_x86.c
|
|
|
|
MAN+= \
|
|
pkru.3
|
|
|
|
.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
|