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