blob: 654b184ca7f24e602a42e22c4fd9a97cb3a7bbfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
$OpenBSD: patch-build_toolchain_gcc_toolchain_gni,v 1.35 2021/11/16 11:28:45 robert Exp $
Index: build/toolchain/gcc_toolchain.gni
--- build/toolchain/gcc_toolchain.gni.orig
+++ build/toolchain/gcc_toolchain.gni
@@ -49,6 +49,11 @@ if (enable_resource_allowlist_generation) {
"enable_resource_allowlist_generation=true does not work for target_os=$target_os")
}
+declare_args() {
+ extra_cppflags = ""
+ extra_ldflags = ""
+}
+
# This template defines a toolchain for something that works like gcc
# (including clang).
#
@@ -736,13 +741,13 @@ template("clang_toolchain") {
}
gcc_toolchain(target_name) {
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
- cc = "$prefix/clang"
- cxx = "$prefix/clang++"
+ prefix = "/usr/bin"
+ cc = "cc"
+ cxx = "c++"
ld = cxx
readelf = "${toolprefix}readelf"
- ar = "${prefix}/llvm-ar"
- nm = "${prefix}/llvm-nm"
+ ar = "${prefix}/ar"
+ nm = "${prefix}/nm"
forward_variables_from(invoker,
[
|