mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-21 04:31:04 +08:00
09f214528c
It allows build both glibc and tests with lld (Since lld does not support R_RISCV_ALIGN linker relaxation). Checked with a build for riscv32-linux-gnu-rv32imafdc-ilp32d and riscv64-linux-gnu-rv64imafdc-lp64d. Reviewed-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Fangrui Song <maskray@google.com>
14 lines
314 B
Makefile
14 lines
314 B
Makefile
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
|