summaryrefslogtreecommitdiff
path: root/devel/electron4/files/patch-third__party_yasm_BUILD.gn
blob: 89e999d65f98b7436e094b33a1925d45407104a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- third_party/yasm/BUILD.gn.orig	2019-03-15 06:38:25 UTC
+++ third_party/yasm/BUILD.gn
@@ -60,7 +60,12 @@ if (current_toolchain == host_toolchain) {
   # x86insn_nasm.c. These files were previously generated during the build but
   # are now shipped pre-generated by yasm.
   yasm_gen_include_dir = "$target_gen_dir/gen_include"
-  config_makefile = "source/config/Makefile"
+  # Hack for all BSD derivatives use OpenBSD include directory
+  if (is_bsd) {
+    config_makefile = "source/config/openbsd/Makefile"
+  } else {
+    config_makefile = "source/config/$host_os/Makefile"
+  }
   version_file = "version.mac"
 
   import("//build/compiled_action.gni")