about summary refs log tree commit diff
path: root/sysdeps/loongarch/Makefile
blob: 1778fd1c88b9b53225828eae439fd052f5aa2cc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
ifeq ($(subdir),misc)
sysdep_headers += sys/asm.h
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