Makefile 645 B

12345678910111213141516171819202122232425
  1. ifeq ($(subdir),elf)
  2. sysdep_routines += dl-vdso
  3. ifeq ($(build-shared),yes)
  4. # This is needed for DSO loading from static binaries.
  5. sysdep-dl-routines += dl-static
  6. endif
  7. endif
  8. ifeq ($(subdir),misc)
  9. sysdep_headers += sys/cachectl.h
  10. sysdep_routines += flush-icache
  11. endif
  12. ifeq ($(subdir),stdlib)
  13. gen-as-const-headers += ucontext_i.sym
  14. endif
  15. abi-variants := lp64 lp64d
  16. ifeq (,$(filter $(default-abi),$(abi-variants)))
  17. $(error Unknown ABI $(default-abi), must be one of $(abi-variants))
  18. endif
  19. abi-lp64-condition := defined __LP64__ && defined __riscv_float_abi_soft
  20. abi-lp64d-condition := defined __LP64__ && defined __riscv_float_abi_double