forked from ariadne/pkgconf
main: use pkgconf_client_set_buildroot_dir() instead of manually handling it
parent
38e959857a
commit
f8de5bf161
4
main.c
4
main.c
|
@ -812,9 +812,7 @@ main(int argc, char *argv[])
|
|||
want_flags |= PKG_KEEP_SYSTEM_LIBS;
|
||||
|
||||
if ((builddir = getenv("PKG_CONFIG_TOP_BUILD_DIR")) != NULL)
|
||||
pkgconf_tuple_add_global(&pkg_client, "pc_top_builddir", builddir);
|
||||
else
|
||||
pkgconf_tuple_add_global(&pkg_client, "pc_top_builddir", "$(top_builddir)");
|
||||
pkgconf_client_set_buildroot_dir(&pkg_client, builddir);
|
||||
|
||||
if ((sysroot_dir = getenv("PKG_CONFIG_SYSROOT_DIR")) != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue