=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/pkg-config/pkg-config,v retrieving revision 1.63 retrieving revision 1.64 diff -c -r1.63 -r1.64 *** src/usr.bin/pkg-config/pkg-config 2011/06/12 21:33:49 1.63 --- src/usr.bin/pkg-config/pkg-config 2011/06/15 11:54:03 1.64 *************** *** 1,5 **** #!/usr/bin/perl ! # $OpenBSD: pkg-config,v 1.63 2011/06/12 21:33:49 jasper Exp $ # $CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe --- 1,5 ---- #!/usr/bin/perl ! # $OpenBSD: pkg-config,v 1.64 2011/06/15 11:54:03 jasper Exp $ # $CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe *************** *** 256,263 **** } }; &$get_props("Requires"); - &$get_props("Requires.private"); } --- 256,265 ---- } }; + if (defined $mode{cflags} or $mode{static} or $mode{printreqprivate}) { + &$get_props("Requires.private"); + } &$get_props("Requires"); } *************** *** 357,365 **** { my ($p) = @_; my $f = pathresolve($p); ! if (defined $f) { ! return get_config($f); ! } say_error("Package $p was not found in the pkg-config search path"); return undef; --- 359,367 ---- { my ($p) = @_; my $f = pathresolve($p); ! ! return get_config($f) if defined($f); ! say_error("Package $p was not found in the pkg-config search path"); return undef; *************** *** 456,461 **** --- 458,464 ---- my $l = $configs{$pkg}->get_property('Libs', $variables); push(@$libs, @$l) if defined $l; } + my $a = OpenBSD::PkgConfig->compress($libs, sub { local $_ = shift;