mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
15 lines
867 B
Diff
15 lines
867 B
Diff
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
|
|
index ebe0d92..904090b 100644
|
|
--- a/mesonbuild/modules/pkgconfig.py
|
|
+++ b/mesonbuild/modules/pkgconfig.py
|
|
@@ -693,6 +693,9 @@ class PkgConfigModule(NewExtensionModule):
|
|
pcfile = filebase + '.pc'
|
|
pkgroot = pkgroot_name = kwargs['install_dir'] or default_install_dir
|
|
if pkgroot is None:
|
|
+ pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('libdir'))), 'pkgconfig')
|
|
+ pkgroot_name = os.path.join('{libdir}', 'pkgconfig')
|
|
+ elif False:
|
|
if mesonlib.is_freebsd():
|
|
pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('prefix'))), 'libdata', 'pkgconfig')
|
|
pkgroot_name = os.path.join('{prefix}', 'libdata', 'pkgconfig')
|