summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-07-11 14:17:09 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-07-11 14:17:09 +0000
commit20e10ea5d872da508dff35b872b8b1a73fc65f22 (patch)
tree5169d9feecbe1c8082b4d85ede4f58649b6d6de5
parent0c21837d3bf5ac63aea68bae08fb573c2832336a (diff)
duh, idiot
-rw-r--r--usr.bin/libtool/LT/Mode/Link.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/libtool/LT/Mode/Link.pm b/usr.bin/libtool/LT/Mode/Link.pm
index 34bcff7368d..db5b24806f8 100644
--- a/usr.bin/libtool/LT/Mode/Link.pm
+++ b/usr.bin/libtool/LT/Mode/Link.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Link.pm,v 1.11 2012/07/11 14:12:44 espie Exp $
+# $OpenBSD: Link.pm,v 1.12 2012/07/11 14:17:08 espie Exp $
#
# Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org>
# Copyright (c) 2012 Marc Espie <espie@openbsd.org>
@@ -288,11 +288,11 @@ sub run
$sharedlib = $libname.'-'.$gp->release.'.so';
}
if ($gp->avoid_version ||
- ($gp->release && !$gp->version_info)) {
+ (defined $gp->release && !$gp->version_info)) {
# don't add a version in these cases
} else {
$sharedlib .= ".$sover";
- if ($gp->release) {
+ if (defined $gp->release) {
$sharedlib_symlink .= ".$sover";
}
}
@@ -308,7 +308,7 @@ sub run
$lainfo->{'dlname'} = $sharedlib;
$lainfo->{'library_names'} = $sharedlib;
$lainfo->{'library_names'} .= " $sharedlib_symlink"
- if $gp->release;
+ if defined $gp->release;
$lainfo->link($ltprog, $ltconfig, $ofile, $sharedlib, $odir, 1, \@sobjs, $dirs, $libs, $deplibs, $libdirs, $parser, $gp);
tsay {"sharedlib: $sharedlib"};
$lainfo->{'current'} = $current;