summaryrefslogtreecommitdiff
path: root/lang/v8/files/patch-build_config_linux_pkg-config.py
diff options
context:
space:
mode:
authorMikael Urankar <mikael@FreeBSD.org>2020-11-20 10:41:13 +0000
committerMikael Urankar <mikael@FreeBSD.org>2020-11-20 10:41:13 +0000
commit9a4ce488e85c4b59c1d2acdfd23cb88b7e9ca198 (patch)
tree84f3b4638ccf347ba91572ef9f96440521ed236f /lang/v8/files/patch-build_config_linux_pkg-config.py
parentnet/concourse-fly: Update to 6.7.1 (diff)
lang/v8: Update to 8.7.220.23
PR: 213202 Reported by: many Approved by: sunpoet (maintainer timeout)
Diffstat (limited to 'lang/v8/files/patch-build_config_linux_pkg-config.py')
-rw-r--r--lang/v8/files/patch-build_config_linux_pkg-config.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/v8/files/patch-build_config_linux_pkg-config.py b/lang/v8/files/patch-build_config_linux_pkg-config.py
new file mode 100644
index 000000000000..8a2865a024c0
--- /dev/null
+++ b/lang/v8/files/patch-build_config_linux_pkg-config.py
@@ -0,0 +1,26 @@
+--- build/config/linux/pkg-config.py.orig 2019-07-24 18:58:02 UTC
++++ build/config/linux/pkg-config.py
+@@ -59,8 +59,12 @@ def SetConfigPath(options):
+ print("You must specify an architecture via -a if using a sysroot.")
+ sys.exit(1)
+
+- libdir = sysroot + '/usr/' + options.system_libdir + '/pkgconfig'
+- libdir += ':' + sysroot + '/usr/share/pkgconfig'
++ if "linux" in sys.platform:
++ libdir = sysroot + '/libdata/' + options.system_libdir + '/pkgconfig'
++ libdir += ':' + sysroot + '/usr/share/pkgconfig'
++ elif "bsd" in sys.platform:
++ libdir = sysroot + '/libdata/pkgconfig'
++ libdir += ':' + '/usr/libdata/pkgconfig'
+ os.environ['PKG_CONFIG_LIBDIR'] = libdir
+ return libdir
+
+@@ -109,7 +113,7 @@ def main():
+ # If this is run on non-Linux platforms, just return nothing and indicate
+ # success. This allows us to "kind of emulate" a Linux build from other
+ # platforms.
+- if "linux" not in sys.platform:
++ if "bsd" not in sys.platform:
+ print("[[],[],[],[],[]]")
+ return 0
+