mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-28 15:51:07 +00:00
095067efdf
The current IFUNC selection is always using the most recent features which are available via AT_HWCAP. But in some scenarios it is useful to adjust this selection. The environment variable: GLIBC_TUNABLES=glibc.cpu.hwcaps=-xxx,yyy,zzz,.... can be used to enable HWCAP feature yyy, disable HWCAP feature xxx, where the feature name is case-sensitive and has to match the ones used in sysdeps/loongarch/cpu-tunables.c. Signed-off-by: caiyinyu <caiyinyu@loongson.cn>
30 lines
652 B
Makefile
30 lines
652 B
Makefile
ifeq ($(subdir),misc)
|
|
sysdep_headers += sys/asm.h
|
|
|
|
tests += \
|
|
tst-hwcap-tunables \
|
|
# tests
|
|
|
|
tst-hwcap-tunables-ARGS = -- $(host-test-program-cmd)
|
|
endif
|
|
|
|
ifeq ($(subdir),elf)
|
|
gen-as-const-headers += dl-link.sym
|
|
endif
|
|
|
|
ifeq ($(subdir),elf)
|
|
sysdep-dl-routines += \
|
|
dl-get-cpu-features \
|
|
# sysdep-dl-routines
|
|
endif
|
|
|
|
# LoongArch's assembler also needs to know about PIC as it changes the
|
|
# definition of some assembler macros.
|
|
ASFLAGS-.os += $(pic-ccflag)
|
|
|
|
# All the objects in lib*_nonshared.a need to be compiled with medium code
|
|
# model or large applications may fail to link.
|
|
ifeq (yes,$(have-cmodel-medium))
|
|
CFLAGS-.oS += -mcmodel=medium
|
|
endif
|