1From bfc520671693587a0b81842018326da35aa97f80 Mon Sep 17 00:00:00 2001
2From: James Hilliard <james.hilliard1@gmail.com>
3Date: Thu, 3 Feb 2022 20:41:08 -0700
4Subject: [PATCH] Don't rebase sysroot path
5
6Just use the actual sysroot as rebase_path will generate an invalid
7sysroot path.
8
9Fixes:
10/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
11
12Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
13---
14 chromium/build/config/posix/BUILD.gn | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/chromium/build/config/posix/BUILD.gn b/chromium/build/config/posix/BUILD.gn
18index e61554c5656..dc957225869 100644
19--- a/chromium/build/config/posix/BUILD.gn
20+++ b/chromium/build/config/posix/BUILD.gn
21@@ -27,7 +27,7 @@ config("runtime_library") {
22
23   if (!is_apple && sysroot != "") {
24     # Pass the sysroot to all C compiler variants, the assembler, and linker.
25-    sysroot_flags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
26+    sysroot_flags = [ "--sysroot=" + sysroot ]
27     if (is_linux || is_chromeos) {
28       # This is here so that all files get recompiled after a sysroot roll and
29       # when turning the sysroot on or off. (defines are passed via the command
30--
312.25.1
32
33