$OpenBSD: patch-build_toolchain_gcc_toolchain_gni,v 1.4 2016/12/10 15:35:25 robert Exp $
--- build/toolchain/gcc_toolchain.gni.orig.port	Fri Dec  2 17:57:33 2016
+++ build/toolchain/gcc_toolchain.gni	Fri Dec  2 17:57:59 2016
@@ -11,6 +11,11 @@ import("//build/toolchain/cc_wrapper.gni")
 import("//build/toolchain/goma.gni")
 import("//build/toolchain/toolchain.gni")
 
+declare_args() {
+  extra_cppflags = ""
+  extra_ldflags = ""
+}
+
 # This template defines a toolchain for something that works like gcc
 # (including clang).
 #
@@ -279,7 +284,7 @@ template("gcc_toolchain") {
       # POSIX-like toolchains such as NaCl on Windows).
       ar_wrapper =
           rebase_path("//build/toolchain/gcc_ar_wrapper.py", root_build_dir)
-      command = "$python_path \"$ar_wrapper\"$whitelist_flag --output={{output}} --ar=\"$ar\" {{arflags}} rcsD @\"$rspfile\""
+      command = "$python_path \"$ar_wrapper\"$whitelist_flag --output={{output}} --ar=\"$ar\" {{arflags}} rcs @\"$rspfile\""
       description = "AR {{output}}"
       rspfile_content = "{{inputs}}"
       outputs = [
@@ -482,7 +487,7 @@ template("clang_toolchain") {
   }
 
   gcc_toolchain(target_name) {
-    prefix = rebase_path("$clang_base_path/bin", root_build_dir)
+    prefix = "/usr/local/bin"
     cc = "$prefix/clang"
     cxx = "$prefix/clang++"
     ld = cxx
