summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorChris Kuethe <ckuethe@cvs.openbsd.org>2009-06-21 21:30:47 +0000
committerChris Kuethe <ckuethe@cvs.openbsd.org>2009-06-21 21:30:47 +0000
commitf8e93f3d495bc05de60a1248b181df0aecb9cdc3 (patch)
treef3e42855441311700303029d2785ec3287f4a6f7 /usr.bin
parent18156d040ab65714c86fd5c40b2aa71f3f31e502 (diff)
fix PKG_CONFIG_PATH handling per system/6174. tested with xenocara build
and a bunch of ports
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pkg-config/pkg-config4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config
index 30d2fe8e47c..c0b83a57304 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.23 2008/10/26 23:56:37 jasper Exp $
+# $OpenBSD: pkg-config,v 1.24 2009/06/21 21:30:46 ckuethe Exp $
#$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $
# Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org>
@@ -27,7 +27,7 @@ my @PKGPATH = qw(/usr/local/lib/pkgconfig /usr/X11R6/lib/pkgconfig );
if (defined($ENV{PKG_CONFIG_LIBDIR}) && $ENV{PKG_CONFIG_LIBDIR}) {
@PKGPATH = split /:/, $ENV{PKG_CONFIG_LIBDIR};
} elsif (defined($ENV{PKG_CONFIG_PATH}) && $ENV{PKG_CONFIG_PATH}) {
- push(@PKGPATH, split /:/, $ENV{PKG_CONFIG_PATH});
+ unshift(@PKGPATH, split /:/, $ENV{PKG_CONFIG_PATH});
}
my $logfile = '';