Fix tix-build(1) not preserving PKG_CONFIG_LIBDIR in PKG_CONFIG_FOR_BUILD.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-01-15 01:14:17 +01:00
parent 7b02492649
commit c57b5fe176
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ void emit_pkg_config_wrapper(metainfo_t* minfo)
fprint_shell_variable_assignment(pkg_config_for_build, "PKG_CONFIG_PATH", getenv("PKG_CONFIG_PATH"));
fprint_shell_variable_assignment(pkg_config_for_build, "PKG_CONFIG_SYSROOT_DIR", getenv("PKG_CONFIG_SYSROOT_DIR"));
fprint_shell_variable_assignment(pkg_config_for_build, "PKG_CONFIG_FOR_BUILD", getenv("PKG_CONFIG_FOR_BUILD"));
fprint_shell_variable_assignment(pkg_config_for_build, "PKG_CONFIG_LIBDIR", getenv("PKG_CONFIG_LIBDIR"));
fprintf(pkg_config_for_build, "exec ${PKG_CONFIG:-pkg-config} \"$@\"\n");
fflush(pkg_config_for_build);
fchmod_plus_x(fileno(pkg_config_for_build));