summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-07 08:18:03 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-07 08:18:03 +0000
commit49bdbbdde2946281a7dc0b3cf2955329cd162d46 (patch)
tree76c659175178079928a2a47beb846e7c5df2e663 /usr.sbin/pkg_add/OpenBSD/Dependencies.pm
parente959cb16f6d931256892459bdc4c586798b56344 (diff)
use one single list for system directories.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Dependencies.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Dependencies.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
index a8e427946f3..07baf5fd136 100644
--- a/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Dependencies.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Dependencies.pm,v 1.15 2007/05/07 08:14:51 espie Exp $
+# $OpenBSD: Dependencies.pm,v 1.16 2007/05/07 08:18:02 espie Exp $
#
# Copyright (c) 2005-2007 Marc Espie <espie@openbsd.org>
#
@@ -161,7 +161,7 @@ sub lookup_library
if ($lib !~ m|/|) {
OpenBSD::SharedLibs::add_system_libs($state->{destdir});
- for my $dir ("/usr", "/usr/X11R6") {
+ for my $dir (OpenBSD::SharedLibs::system_dirs()) {
if (check_lib_spec($dir, $lib, {system => 1})) {
print "found libspec $lib in $dir/lib\n" if $state->{very_verbose};
return 1;