diff options
Diffstat (limited to 'lib/libsys/x86/Makefile.sys')
-rw-r--r-- | lib/libsys/x86/Makefile.sys | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/libsys/x86/Makefile.sys b/lib/libsys/x86/Makefile.sys new file mode 100644 index 000000000000..483d1784bdc9 --- /dev/null +++ b/lib/libsys/x86/Makefile.sys @@ -0,0 +1,24 @@ +.PATH: ${LIBSYS_SRCTOP}/x86 + +SRCS+= \ + __vdso_gettc.c \ + pkru.c \ + sched_getcpu_x86.c + +.if ${LIB} == "sys" +MAN+= \ + pkru.3 +.endif # ${LIB} == "sys" + +# Note: vdso support for hyperv only on amd64 +.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 |