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