diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2017-04-07 09:17:28 -0500 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2017-04-07 09:17:28 -0500 |
commit | 2dd2b1994446e152b1e3e79c9233f62edba14877 (patch) | |
tree | ff22c64369cf0b2667dfaff5e44d5cb249eaeb38 | |
parent | edf8e6f0ea77ede073f07bff0d2ae1fc7a38103b (diff) |
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
-rw-r--r-- | parse.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 || |