summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2011-03-10 19:06:30 +0000
committerjasper <jasper@openbsd.org>2011-03-10 19:06:30 +0000
commit461f4a05a6e70ae1cf3429ba956728ee1019c8e0 (patch)
treec044647d6e5eadbc87fc1e5ed4d33fe026199152
parentChanging daemon_flags on already running processes can make any kind of (diff)
downloadwireguard-openbsd-461f4a05a6e70ae1cf3429ba956728ee1019c8e0.tar.xz
wireguard-openbsd-461f4a05a6e70ae1cf3429ba956728ee1019c8e0.zip
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";