glibc/sysdeps/riscv/Makefile

18 lines
378 B
Makefile

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