0020-workaround-for-files-not-found-in-sysroot.patch 909 B

1234567891011121314151617181920212223242526272829
  1. From 69881d81443cd78aa9aca83ffc15298325ab9bdc Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Thu, 28 Apr 2022 01:03:56 +0000
  4. Subject: [PATCH 20/22] workaround for files not found in sysroot
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. buildtools/third_party/libc++/BUILD.gn | 5 ++++-
  8. 1 file changed, 4 insertions(+), 1 deletion(-)
  9. diff --git a/buildtools/third_party/libc++/BUILD.gn b/buildtools/third_party/libc++/BUILD.gn
  10. index 74b6ad644d49c..cf7ad5b2f8426 100644
  11. --- a/buildtools/third_party/libc++/BUILD.gn
  12. +++ b/buildtools/third_party/libc++/BUILD.gn
  13. @@ -23,7 +23,10 @@ config("config") {
  14. "-std:c++20",
  15. ]
  16. } else {
  17. - cflags += [ "-fPIC" ]
  18. + cflags += [
  19. + "-fPIC",
  20. + "-isystem../../build/linux/debian_sid_riscv64-sysroot/usr/include",
  21. + ]
  22. cflags_cc = [ "-std=c++20" ]
  23. }
  24. --
  25. 2.25.1