xref: /freebsd/lib/libsys/x86/Makefile.sys (revision cf675768528f22b4a9d8c70897b9ebf51da8061e)
1.PATH:	${LIBSYS_SRCTOP}/x86
2
3SRCS+= \
4	__vdso_gettc.c \
5	pkru.c \
6	sched_getcpu_x86.c
7
8MAN+=	\
9	pkru.3
10
11# Note: vdso support for hyperv only on amd64
12.if ${MACHINE_CPUARCH} == "amd64" && ${MK_HYPERV} != "no"
13CFLAGS+=	-DWANT_HYPERV
14.endif
15# We can't use sanitizer instrumentation on ifuncs called during sanitizer
16# runtime startup.
17.if ${MK_ASAN} != "no"
18CFLAGS.__vdso_gettc.c+=-fno-sanitize=address
19.endif
20.if ${MK_UBSAN} != "no"
21CFLAGS.__vdso_gettc.c+=-fno-sanitize=undefined
22.endif
23