blob: ea92a757a11444730fe9c208a2df4039dab1aed0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- build/config/linux/pkg-config.py.orig 2016-08-03 22:02:10.000000000 +0300
+++ build/config/linux/pkg-config.py 2016-09-04 01:43:37.226981000 +0300
@@ -57,8 +57,12 @@
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
@@ -107,7 +111,7 @@
# 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
|