summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2012-07-05 16:48:16 +0000
committerespie <espie@openbsd.org>2012-07-05 16:48:16 +0000
commit8fef2a0d111d36cdd8428d59fa7cd3aa481b6f90 (patch)
tree080d73f1c58ab82a16a2d2709c8697f512f7fed3
parentCorrect the jumbo setup code within brgphy(4). The code had a mistake (diff)
downloadwireguard-openbsd-8fef2a0d111d36cdd8428d59fa7cd3aa481b6f90.tar.xz
wireguard-openbsd-8fef2a0d111d36cdd8428d59fa7cd3aa481b6f90.zip
error and warning messages should be explicit, sigh...
-rw-r--r--usr.bin/libtool/LT/LaFile.pm6
-rw-r--r--usr.bin/libtool/LT/Program.pm4
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/libtool/LT/LaFile.pm b/usr.bin/libtool/LT/LaFile.pm
index 34efbccc7e7..4599992e555 100644
--- a/usr.bin/libtool/LT/LaFile.pm
+++ b/usr.bin/libtool/LT/LaFile.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: LaFile.pm,v 1.3 2012/07/04 12:39:34 espie Exp $
+# $OpenBSD: LaFile.pm,v 1.4 2012/07/05 16:48:16 espie Exp $
# Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org>
#
@@ -266,11 +266,11 @@ sub link
} else {
push @libflags, '-Wl,-no-whole-archive' if $prev_was_archive;
$prev_was_archive = 0;
- my $lib = basename $a;
+ my $lib = basename($a);
if ($lib =~ m/^lib(.*)\.so(\.\d+){2}/) {
$lib = $1;
} else {
- say "warning: cannot derive -l flag from library filename, assuming hash key";
+ say "warning: cannot derive -l flag from library filename $a, assuming hash key -l$k";
$lib = $k;
}
push @libflags, "-l$lib";
diff --git a/usr.bin/libtool/LT/Program.pm b/usr.bin/libtool/LT/Program.pm
index 474eb4c430a..65e84854282 100644
--- a/usr.bin/libtool/LT/Program.pm
+++ b/usr.bin/libtool/LT/Program.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: Program.pm,v 1.3 2012/07/04 12:39:34 espie Exp $
+# $OpenBSD: Program.pm,v 1.4 2012/07/05 16:48:16 espie Exp $
# Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org>
#
@@ -158,7 +158,7 @@ sub link
if ($lib =~ m/^lib(.*)\.so(\.\d+){2}/) {
$lib = $1;
} else {
- say "warning: cannot derive -l flag from library filename, assuming hash key";
+ say "warning: cannot derive -l flag from library filename $a, assuming hash key $k";
$lib = $k;
}
push @libflags, "-l$lib";