xref: /freebsd/lib/libsys/x86/Makefile.sys (revision 2f9966ff63d65bd474478888c9088eeae3f9c669)
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