teach libtool to build shared libraries with a soname
authorsemarie <semarie@openbsd.org>
Tue, 11 Dec 2018 05:45:14 +0000 (05:45 +0000)
committersemarie <semarie@openbsd.org>
Tue, 11 Dec 2018 05:45:14 +0000 (05:45 +0000)
ok naddy@

usr.bin/libtool/LT/Mode/Link/Library.pm

index 0f71d5a..cbbde04 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Library.pm,v 1.6 2018/04/07 17:54:54 espie Exp $
+# $OpenBSD: Library.pm,v 1.7 2018/12/11 05:45:14 semarie Exp $
 
 # Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org>
 # Copyright (c) 2012 Marc Espie <espie@openbsd.org>
@@ -161,6 +161,7 @@ sub link
 
        my @linkeropts = ();
        if (!$ltconfig->noshared) {
+               push(@linkeropts, '-soname', $fname);
                for my $d (@$RPdirs) {
                        push(@linkeropts, '-rpath', $d);
                }