diff options
Diffstat (limited to 'build')
| -rw-r--r-- | build/config/linux/pkg_config.gni | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/build/config/linux/pkg_config.gni b/build/config/linux/pkg_config.gni index 58769e2..204cbab 100644 --- a/build/config/linux/pkg_config.gni +++ b/build/config/linux/pkg_config.gni @@ -55,20 +55,24 @@ if (sysroot != "") { sysroot, "-a", current_cpu, - "--system_libdir", - system_libdir, ] } else if (pkg_config != "") { pkg_config_args = [ "-p", pkg_config, - "--system_libdir", - system_libdir, ] } else { pkg_config_args = [] } +# Only use the custom libdir when building with the default toolchain. +if (current_toolchain == default_toolchain) { + pkg_config_args += [ + "--system_libdir", + system_libdir, + ] +} + template("pkg_config") { assert(defined(invoker.packages), "Variable |packages| must be defined to be a list in pkg_config.") |
