diff options
author | 2019-09-28 06:25:57 +0000 | |
---|---|---|
committer | 2019-09-28 06:25:57 +0000 | |
commit | 6ffc057a535306cad297f7ec6af42b399e7419c6 (patch) | |
tree | b7e0df028d5cf07351dff3d70d915fbde43c9c56 | |
parent | Use consistent idiom/naming convention for the the #include (diff) | |
download | wireguard-openbsd-6ffc057a535306cad297f7ec6af42b399e7419c6.tar.xz wireguard-openbsd-6ffc057a535306cad297f7ec6af42b399e7419c6.zip |
ensure dependency_libs and libdir are defined after parsing .la file.
problem raised with librsvg which use libtool-rust, and our libtool just die if
deplib_list is undef.
tested in bulk by sthen@ and naddy@
"modern" perl practice/syntax suggested by espie@
makes sense sthen@
ok espie@
-rw-r--r-- | usr.bin/libtool/LT/LaFile.pm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.bin/libtool/LT/LaFile.pm b/usr.bin/libtool/LT/LaFile.pm index bd29cc34493..6c930f24706 100644 --- a/usr.bin/libtool/LT/LaFile.pm +++ b/usr.bin/libtool/LT/LaFile.pm @@ -1,4 +1,4 @@ -# $OpenBSD: LaFile.pm,v 1.23 2014/09/05 10:36:39 espie Exp $ +# $OpenBSD: LaFile.pm,v 1.24 2019/09/28 06:25:57 semarie Exp $ # Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org> # Copyright (c) 2012 Marc Espie <espie@openbsd.org> @@ -188,4 +188,16 @@ sub install } } +sub parse +{ + my ($class, $filename) = @_; + + my $info = $class->SUPER::parse($filename); + + $info->{deplib_list} //= LT::UList->new; + $info->{libdir} //= ''; + + return $info; +} + 1; |