mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-20 04:20:04 +01:00
parse: Don't emit unknown keyword warning for Libs.private
Requires.private and Libs.private are skipped unless --static is in use. However, the parser was checking for Libs.private and this option in a single conditional unlike Requires.private. This was making the check fall through to the else and emit an "Unknown keyword" debug message when --static was not used. This was harmless but not true. https://bugs.freedesktop.org/show_bug.cgi?id=99770
This commit is contained in:
parent
edf8e6f0ea
commit
2dd2b19944
1 changed files with 5 additions and 3 deletions
8
parse.c
8
parse.c
|
|
@ -962,9 +962,11 @@ parse_line (Package *pkg, const char *untrimmed, const char *path,
|
|||
else
|
||||
goto cleanup;
|
||||
}
|
||||
else if ((strcmp (tag, "Libs.private") == 0) &&
|
||||
ignore_private_libs == FALSE)
|
||||
parse_libs_private (pkg, p, path);
|
||||
else if (strcmp (tag, "Libs.private") == 0)
|
||||
{
|
||||
if (!ignore_private_libs)
|
||||
parse_libs_private (pkg, p, path);
|
||||
}
|
||||
else if (strcmp (tag, "Libs") == 0)
|
||||
parse_libs (pkg, p, path);
|
||||
else if (strcmp (tag, "Cflags") == 0 ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue