summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2008-10-26 23:56:38 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2008-10-26 23:56:38 +0000
commitc115d68c48608bed0ff4568325d5c7e0bef55268 (patch)
tree1424baa7fa3a0eb807f9a82d35291ae8e7c74e71
parenta18ba554d207205bb466a43cef4177ff84dc391b (diff)
- make pkg-config recognize --short-errors
- bump the version we're pretending to be to 0.21 ok ckuethe@ ajacoutot@
-rw-r--r--usr.bin/pkg-config/pkg-config5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config
index 1dda69f8ca3..30d2fe8e47c 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.22 2008/09/06 10:49:28 simon Exp $
+# $OpenBSD: pkg-config,v 1.23 2008/10/26 23:56:37 jasper Exp $
#$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $
# Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org>
@@ -39,7 +39,7 @@ my $allow_uninstalled =
defined $ENV{PKG_CONFIG_DISABLE_UNINSTALLED} ? 0 : 1;
my $found_uninstalled = 0;
-my $version = 0.19; # pretend to be this version of pkgconfig
+my $version = 0.21; # pretend to be this version of pkgconfig
my %configs = ();
my %mode = ();
@@ -78,6 +78,7 @@ GetOptions( 'debug' => \$D,
'errors-to-stdout' => sub { $mode{estdout} = 1},
'print-errors' => sub { $mode{printerr} = 1},
'silence-errors' => sub { $mode{printerr} = 0},
+ 'short-errors' => sub { $mode{printerr} = 0},
'atleast-pkgconfig-version=s' => \$mode{myminvers},
'cflags' => sub { $mode{cflags} = 3},