From f8de5bf1613160e4627f68a934fda2117b1868e6 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 9 Dec 2016 21:10:21 -0600 Subject: [PATCH] main: use pkgconf_client_set_buildroot_dir() instead of manually handling it --- main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.c b/main.c index f56f36b..2b0faa1 100644 --- a/main.c +++ b/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) {