diff options
author | 2006-12-14 22:45:21 +0000 | |
---|---|---|
committer | 2006-12-14 22:45:21 +0000 | |
commit | dc0b4cc618ae3b22ff16f9699463d8ea48badbf2 (patch) | |
tree | fd78805e755bcdd746e14d808b76892b6a0c30e1 | |
parent | Add the esp driver to macppc, supports the NCR53c94 SCSI controller found (diff) | |
download | wireguard-openbsd-dc0b4cc618ae3b22ff16f9699463d8ea48badbf2.tar.xz wireguard-openbsd-dc0b4cc618ae3b22ff16f9699463d8ea48badbf2.zip |
do not display result if $rc != 0, fixes cases like
LIBS=`pkg-config --libs foo`, like in net/ekg
-rw-r--r-- | usr.bin/pkg-config/pkg-config | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config index 8d0ff6f9606..2e9885f2d79 100644 --- a/usr.bin/pkg-config/pkg-config +++ b/usr.bin/pkg-config/pkg-config @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: pkg-config,v 1.16 2006/12/14 10:23:34 espie Exp $ +# $OpenBSD: pkg-config,v 1.17 2006/12/14 22:45:21 espie Exp $ #$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org> @@ -196,7 +196,7 @@ my $dep_cfg_list = simplify_and_reverse($cfg_full_list); if ($mode{cflags} || $mode{libs} || $mode{variable}) { push @vlist, do_cflags($dep_cfg_list) if $mode{cflags}; push @vlist, do_libs($dep_cfg_list) if $mode{libs}; - print join(' ', @vlist), "\n"; + print join(' ', @vlist), "\n" if $rc == 0; } exit $rc; |