Makefile 378 B

1234567891011121314151617
  1. ifeq ($(subdir),misc)
  2. sysdep_headers += sys/asm.h
  3. endif
  4. ifeq ($(subdir),elf)
  5. gen-as-const-headers += dl-link.sym
  6. endif
  7. # RISC-V's assembler also needs to know about PIC as it changes the definition
  8. # of some assembler macros.
  9. ASFLAGS-.os += $(pic-ccflag)
  10. ifeq (no,$(riscv-r-align))
  11. ASFLAGS-.os += -Wa,-mno-relax
  12. ASFLAGS-.o += -Wa,-mno-relax
  13. sysdep-CFLAGS += -mno-relax
  14. endif