Skip to content

Commit fce1420

Browse files
author
Winfried Dobbe
committed
Prevent that pkgconf prefixes sysroot path in front of paths to conan packages (that are outside the toolchain sysroot).
1 parent fee7bbb commit fce1420

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

conan/tools/meson/meson.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def configure(self, reconfigure=False):
3737
default=[], check_type=list)
3838
cmd = "meson setup "
3939
if is_cross_build:
40+
#Do not let pkgconf prefix sysroot path in front of paths to Conan packages (that are
41+
#outside the toolchain sysroot).
42+
os.environ['PKG_CONFIG_FDO_SYSROOT_RULES'] = "1"
4043
machine_files.insert(0, cross)
4144
cmd += " ".join([f'--cross-file "{file}"' for file in machine_files])
4245
if os.path.exists(native):

0 commit comments

Comments
 (0)