0001-riscv-disable-precompiled-headers.patch 869 B

12345678910111213141516171819202122232425262728293031323334
  1. From 980d5143089bf32ef8a6dfdf1bb9e9fe92fa7bf5 Mon Sep 17 00:00:00 2001
  2. From: Julien Olivain <ju.o@free.fr>
  3. Date: Sun, 9 Jan 2022 13:38:48 +0100
  4. Subject: [PATCH] riscv: disable precompiled headers
  5. While precompiling header, some toolchains fail with the message:
  6. /path/to/toolchain/bin/ld: /path/to/sysroot/usr/lib/Scrt1.o: in function `_start':
  7. (.text+0x54): undefined reference to `main'
  8. The patch totally disable precompiled headers.
  9. Signed-off-by: Julien Olivain <ju.o@free.fr>
  10. ---
  11. riscv/riscv.mk.in | 3 ---
  12. 1 file changed, 3 deletions(-)
  13. diff --git a/riscv/riscv.mk.in b/riscv/riscv.mk.in
  14. index 2347ce6..4f56eaf 100644
  15. --- a/riscv/riscv.mk.in
  16. +++ b/riscv/riscv.mk.in
  17. @@ -35,9 +35,6 @@ riscv_hdrs = \
  18. riscv_install_hdrs = mmio_plugin.h
  19. -riscv_precompiled_hdrs = \
  20. - insn_template.h \
  21. -
  22. riscv_srcs = \
  23. processor.cc \
  24. execute.cc \
  25. --
  26. 2.34.1