about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/misc/pkg-config/requires-private.patch
blob: d40aa9801379888e70b73ac1bf15a44d5d9ae85e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/main.c b/main.c
index b61ca34..5a420c2 100644
--- a/main.c
+++ b/main.c
@@ -602,10 +602,10 @@ main (int argc, char **argv)
   else
     disable_private_libs();
 
-  /* honor Requires.private if any Cflags are requested or any static
+  /* honor Requires.private if any any static
    * libs are requested */
 
-  if (pkg_flags & CFLAGS_ANY || want_requires_private || want_exists ||
+  if (want_requires_private ||
       (want_static_lib_list && (pkg_flags & LIBS_ANY)))
     enable_requires_private();