Merge pull request 'Fix desktop build' (#152) from fix/sysroot into release/v9.2.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/build_tools/pulls/152
This commit is contained in:
Oleg Korshul
2025-11-14 18:04:41 +00:00
2 changed files with 1 additions and 1 deletions

View File

@ -1894,7 +1894,6 @@ def set_sysroot_env():
if "linux" == host_platform() and config.option("sysroot") != "":
os.environ['PATH'] = config.option("sysroot") + "/usr/bin:" + get_env("PATH")
os.environ['LD_LIBRARY_PATH'] = config.get_custom_sysroot_lib()
os.environ['PKG_CONFIG_PATH'] = config.get_custom_sysroot_lib() + "/pkgconfig"
os.environ['CC'] = config.get_custom_sysroot_bin() + "/gcc"
os.environ['CXX'] = config.get_custom_sysroot_bin() + "/g++"
os.environ['CFLAGS'] = "--sysroot=" + config.option("sysroot")

View File

@ -103,6 +103,7 @@ def make(platform, project, qmake_config_addon="", is_no_errors=False):
if "" != config.option("sysroot"):
os.environ['QMAKE_CUSTOM_SYSROOT'] = config.option("sysroot")
os.environ['PKG_CONFIG_PATH'] = config.get_custom_sysroot_lib() + "/pkgconfig"
base.cmd_exe(qmake_app, build_params)