glibc/sysdeps/loongarch/Makefile
caiyinyu eaa5b1cce8 LoongArch: Add support for dl_runtime_profile
This commit can fix the FAIL item: elf/tst-sprof-basic.
2023-06-13 10:27:45 +08:00

18 lines
453 B
Makefile

ifeq ($(subdir),misc)
sysdep_headers += sys/asm.h
endif
ifeq ($(subdir),elf)
gen-as-const-headers += dl-link.sym
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