2022-07-19 01:22:07 +00:00
|
|
|
ifeq ($(subdir),misc)
|
|
|
|
sysdep_headers += sys/asm.h
|
2023-09-15 09:35:19 +00:00
|
|
|
|
|
|
|
tests += \
|
|
|
|
tst-hwcap-tunables \
|
|
|
|
# tests
|
|
|
|
|
|
|
|
tst-hwcap-tunables-ARGS = -- $(host-test-program-cmd)
|
2022-07-19 01:22:07 +00:00
|
|
|
endif
|
|
|
|
|
2023-03-20 01:25:36 +00:00
|
|
|
ifeq ($(subdir),elf)
|
|
|
|
gen-as-const-headers += dl-link.sym
|
|
|
|
endif
|
|
|
|
|
2023-09-15 09:35:19 +00:00
|
|
|
ifeq ($(subdir),elf)
|
|
|
|
sysdep-dl-routines += \
|
|
|
|
dl-get-cpu-features \
|
|
|
|
# sysdep-dl-routines
|
|
|
|
endif
|
|
|
|
|
2022-07-19 01:22:07 +00:00
|
|
|
# LoongArch's assembler also needs to know about PIC as it changes the
|
|
|
|
# definition of some assembler macros.
|
|
|
|
ASFLAGS-.os += $(pic-ccflag)
|
2022-09-07 02:33:00 +00:00
|
|
|
|
|
|
|
# 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
|