mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
Changes: https://v8.dev/blog/v8-release-96 https://chromium.googlesource.com/v8/v8.git/+log/refs/heads/9.6-lkgr https://github.com/v8/v8/commits/9.6-lkgr
26 lines
1 KiB
Python
26 lines
1 KiB
Python
--- 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
|
|
|