0002-Don-t-rebase-sysroot-path.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. From bfc520671693587a0b81842018326da35aa97f80 Mon Sep 17 00:00:00 2001
  2. From: James Hilliard <james.hilliard1@gmail.com>
  3. Date: Thu, 3 Feb 2022 20:41:08 -0700
  4. Subject: [PATCH] Don't rebase sysroot path
  5. Just use the actual sysroot as rebase_path will generate an invalid
  6. sysroot path.
  7. Fixes:
  8. /home/buildroot/buildroot/output/per-package/qt5webengine/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
  9. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
  10. ---
  11. chromium/build/config/posix/BUILD.gn | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/chromium/build/config/posix/BUILD.gn b/chromium/build/config/posix/BUILD.gn
  14. index e61554c5656..dc957225869 100644
  15. --- a/chromium/build/config/posix/BUILD.gn
  16. +++ b/chromium/build/config/posix/BUILD.gn
  17. @@ -27,7 +27,7 @@ config("runtime_library") {
  18. if (!is_apple && sysroot != "") {
  19. # Pass the sysroot to all C compiler variants, the assembler, and linker.
  20. - sysroot_flags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
  21. + sysroot_flags = [ "--sysroot=" + sysroot ]
  22. if (is_linux || is_chromeos) {
  23. # This is here so that all files get recompiled after a sysroot roll and
  24. # when turning the sysroot on or off. (defines are passed via the command
  25. --
  26. 2.25.1