diff options
Diffstat (limited to 'devel/electron7/files/patch-tools_gn_build_gen.py')
-rw-r--r-- | devel/electron7/files/patch-tools_gn_build_gen.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/devel/electron7/files/patch-tools_gn_build_gen.py b/devel/electron7/files/patch-tools_gn_build_gen.py deleted file mode 100644 index 4df2695bcab4..000000000000 --- a/devel/electron7/files/patch-tools_gn_build_gen.py +++ /dev/null @@ -1,24 +0,0 @@ ---- tools/gn/build/gen.py.orig 2019-11-19 01:42:28 UTC -+++ tools/gn/build/gen.py -@@ -69,6 +69,9 @@ class Platform(object): - def is_aix(self): - return self._platform == 'aix' - -+ def is_freebsd(self): -+ return self._platform == 'freebsd' -+ - def is_posix(self): - return self._platform in ['linux', 'freebsd', 'darwin', 'aix', 'openbsd'] - -@@ -337,6 +340,11 @@ def WriteGNNinja(path, platform, host, options): - elif platform.is_aix(): - cflags_cc.append('-maix64') - ldflags.append('-maix64') -+ elif platform.is_freebsd(): -+ cflags.extend(['-Wno-deprecated-register', '-Wno-parentheses-equality']) -+ ldflags.extend(['-pthread']) -+ libs.extend(['-lexecinfo', '-lkvm', '-lutil']) -+ include_dirs += ['/usr/local/include'] - - if platform.is_posix(): - ldflags.append('-pthread') |