about summary refs log tree commit diff
path: root/sysdeps/riscv/Makefile
blob: 8fb10b164f0f6c00b58f3df097718f83614d6184 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
ifeq ($(subdir),misc)
sysdep_headers += sys/asm.h
endif

# RISC-V's assembler also needs to know about PIC as it changes the definition
# of some assembler macros.
ASFLAGS-.os += $(pic-ccflag)

ifeq (no,$(riscv-r-align))
ASFLAGS-.os += -Wa,-mno-relax
ASFLAGS-.o += -Wa,-mno-relax
sysdep-CFLAGS += -mno-relax
endif