mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-20 04:20:04 +01:00
pkg: Include CPATH in header search path
Look for the CPATH environment variable when constructing the -I header search path like GCC does. See https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html. https://bugs.freedesktop.org/show_bug.cgi?id=99224
This commit is contained in:
parent
c53385b5db
commit
4ade8fc901
1 changed files with 6 additions and 0 deletions
6
pkg.c
6
pkg.c
|
|
@ -745,6 +745,12 @@ verify_package (Package *pkg)
|
|||
|
||||
system_directories = add_env_variable_to_list (system_directories, search_path);
|
||||
|
||||
search_path = g_getenv ("CPATH");
|
||||
if (search_path != NULL)
|
||||
{
|
||||
system_directories = add_env_variable_to_list (system_directories, search_path);
|
||||
}
|
||||
|
||||
search_path = g_getenv ("C_INCLUDE_PATH");
|
||||
if (search_path != NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue