1From f98019bb6712fdfa1f3387baefe6b604e6191a88 Mon Sep 17 00:00:00 2001
2From: Leif Middelschulte <Leif.Middelschulte@klsmartin.com>
3Date: Tue, 8 Feb 2022 16:28:14 +0100
4Subject: [PATCH] gn.pro: do not try to statically link stdc++
5
6Upstream-Status: Pending
7Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
8---
9 src/buildtools/gn.pro | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12diff --git a/src/buildtools/gn.pro b/src/buildtools/gn.pro
13index a8ca6567b..9632f0ef7 100644
14--- a/src/buildtools/gn.pro
15+++ b/src/buildtools/gn.pro
16@@ -20,7 +20,8 @@ build_pass|!debug_and_release {
17
18             gn_gen_args = --no-last-commit-position --out-path $$out_path \
19                           --cc \"$$which($$CC_host)\" --cxx \"$$which($$CXX_host)\" \
20-                          --ld \"$$which($$CXX_host)\" --ar \"$$which(ar)\"
21+                          --ld \"$$which($$CXX_host)\" --ar \"$$which(ar)\" \
22+                          --no-static-libstdc++
23
24             msvc:!clang_cl: gn_gen_args += --use-lto
25
26