summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-10 19:06:31 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-10 19:06:31 +0000
commitc0542943d1a18823a14b07f6bc4a3865cdb33987 (patch)
treed19ff59ac7e824d65bf9eb669e9f2ddb95da6ff2
parentf476f73f3b8e7e58878b4ccd7de725187c76d41f (diff)
honor PKG_CONFIG_DEBUG_SPEW, which is like our --debug option
ok ckuethe@
-rw-r--r--usr.bin/pkg-config/pkg-config4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config
index 72c0699b41b..5de3db6e65b 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.28 2011/03/07 22:21:50 jasper Exp $
+# $OpenBSD: pkg-config,v 1.29 2011/03/10 19:06:30 jasper Exp $
#$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $
# Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org>
@@ -55,6 +55,8 @@ my $D = 0; # debug flag
}
}
+$D = 1 if defined($ENV{PKG_CONFIG_DEBUG_SPEW});
+
if ($logfile) {
open my $L, ">>" . $logfile;
print $L '[' . join('] [', $0, @ARGV) . "]\n";