summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-07-11 14:12:45 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-07-11 14:12:45 +0000
commit3381263ba4ed10f84f648a9b6a06022b1da5dc44 (patch)
tree48f3f9a461638e2fc6e65625ad737fab84e3623e
parent5d34153e0cd1c2fcdb76768bb79fe7f3974dfe63 (diff)
must check release is defined, it CAN be 0.
-rw-r--r--usr.bin/libtool/LT/Mode/Link.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/libtool/LT/Mode/Link.pm b/usr.bin/libtool/LT/Mode/Link.pm
index c4f90c251bb..34bcff7368d 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.10 2012/07/11 13:54:48 espie Exp $
+# $OpenBSD: Link.pm,v 1.11 2012/07/11 14:12:44 espie Exp $
#
# Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org>
# Copyright (c) 2012 Marc Espie <espie@openbsd.org>
@@ -283,7 +283,7 @@ sub run
($current, $revision) = split /\./, $sover;
$age = 0;
}
- if ($gp->release) {
+ if (defined $gp->release) {
$sharedlib_symlink = $sharedlib;
$sharedlib = $libname.'-'.$gp->release.'.so';
}