xeus-cling: fix improper linking with LLVM (#351130)
[NixPkgs.git] / pkgs / by-name / me / meson / 007-freebsd-pkgconfig-path.patch
blob8eb172bb12563a9bbb72ab265c624b46c3a6b56a
1 diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
2 index 1bdf82931..db165ea12 100644
3 --- a/mesonbuild/modules/pkgconfig.py
4 +++ b/mesonbuild/modules/pkgconfig.py
5 @@ -701,10 +701,7 @@ class PkgConfigModule(NewExtensionModule):
6 pcfile = filebase + '.pc'
7 pkgroot = pkgroot_name = kwargs['install_dir'] or default_install_dir
8 if pkgroot is None:
9 - if mesonlib.is_freebsd():
10 - pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(OptionKey('prefix'))), 'libdata', 'pkgconfig')
11 - pkgroot_name = os.path.join('{prefix}', 'libdata', 'pkgconfig')
12 - elif mesonlib.is_haiku():
13 + if mesonlib.is_haiku():
14 pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(OptionKey('prefix'))), 'develop', 'lib', 'pkgconfig')
15 pkgroot_name = os.path.join('{prefix}', 'develop', 'lib', 'pkgconfig')
16 else: