libpkgconf: client: filter all of the path-related GCC environment variables listed in the GCC manual (not just the ones in pkg-config)

pull/109/head
William Pitcock 2016-12-30 02:39:18 -06:00
parent 1ece862e87
commit c916e3a437
1 changed files with 5 additions and 0 deletions

View File

@ -56,8 +56,13 @@ pkgconf_client_init(pkgconf_client_t *client, pkgconf_error_handler_func_t error
pkgconf_path_build_from_environ("PKG_CONFIG_SYSTEM_LIBRARY_PATH", SYSTEM_LIBDIR, &client->filter_libdirs);
pkgconf_path_build_from_environ("PKG_CONFIG_SYSTEM_INCLUDE_PATH", SYSTEM_INCLUDEDIR, &client->filter_includedirs);
/* GCC uses these environment variables to define system include paths, so we should check them. */
pkgconf_path_build_from_environ("LIBRARY_PATH", NULL, &client->filter_libdirs);
pkgconf_path_build_from_environ("CPATH", NULL, &client->filter_includedirs);
pkgconf_path_build_from_environ("C_INCLUDE_PATH", NULL, &client->filter_includedirs);
pkgconf_path_build_from_environ("CPLUS_INCLUDE_PATH", NULL, &client->filter_includedirs);
pkgconf_path_build_from_environ("OBJC_INCLUDE_PATH", NULL, &client->filter_includedirs);
}
/*