about summary refs log tree commit diff
path: root/sysdeps/x86/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-01-14 20:16:05 +0100
committerFlorian Weimer <fweimer@redhat.com>2022-01-14 20:17:49 +0100
commit990c953bce06d77360d2e933faa9a008e2c55405 (patch)
treedfa4be45e055b431817a8812af168c1561334bf6 /sysdeps/x86/Makefile
parent550116486692efc394d03befee19f7e9c17d5044 (diff)
downloadglibc-990c953bce06d77360d2e933faa9a008e2c55405.tar.gz
glibc-990c953bce06d77360d2e933faa9a008e2c55405.tar.xz
glibc-990c953bce06d77360d2e933faa9a008e2c55405.zip
x86: Add x86-64-vN check to early startup
This ISA level covers the glibc build itself.  <dl-hwcap-check.h>
cannot be used because this check (by design) happens before
DL_PLATFORM_INIT and the x86 CPU flags initialization.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/x86/Makefile')
-rw-r--r--sysdeps/x86/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile
index 402986ff68..6cf708335c 100644
--- a/sysdeps/x86/Makefile
+++ b/sysdeps/x86/Makefile
@@ -7,6 +7,7 @@ sysdep_routines += get-cpuid-feature-leaf
 sysdep-dl-routines += dl-get-cpu-features
 sysdep_headers += sys/platform/x86.h bits/platform/x86.h
 
+CFLAGS-dl-get-cpu-features.os += $(rtld-early-cflags)
 CFLAGS-get-cpuid-feature-leaf.o += $(no-stack-protector)
 
 tests += tst-get-cpu-features tst-get-cpu-features-static \