On Mon, 10 Nov 2025 18:39:47 +0100
Jeremie Courreges-Anglas <[email protected]> wrote:

> Your changes make sense to me and I've tested your diff in a few bulk
> without spotting any regression.  Time to put this in?  (ok jca@)

Thank you.  I committed it.  I have been running it on my amd64
desktop, which built its own packages.
--gkoehler

> > Index: LT/Mode/Link.pm
> > ===================================================================
> > RCS file: /cvs/src/usr.bin/libtool/LT/Mode/Link.pm,v
> > diff -u -p -r1.38 Link.pm
> > --- LT/Mode/Link.pm 8 Jul 2023 08:15:32 -0000       1.38
> > +++ LT/Mode/Link.pm 17 Aug 2025 03:55:47 -0000
> > @@ -150,7 +150,7 @@ sub run($class, $ltprog, $gp, $ltconfig)
> >  
> >     # XXX options ignored: bindir, dlopen, dlpreopen, no-fast-install,
> >     #       no-install, no-undefined, precious-files-regex,
> > -   #       shrext, thread-safe, prefer-pic, prefer-non-pic,
> > +   #       thread-safe, prefer-pic, prefer-non-pic,
> >     #       static-libtool-libs
> >  
> >     my @RPopts = $gp->rpath;         # -rpath options
> > @@ -245,8 +245,9 @@ sub run($class, $ltprog, $gp, $ltconfig)
> >                     $outfile =~ s/\.a$/.la/;
> >             }
> >             (my $libname = $ofile) =~ s/\.l?a$//;   # remove extension
> > +           my $shrext = $gp->shrext // '.so';
> >             my $staticlib = $libname.'.a';
> > -           my $sharedlib = $libname.'.so';
> > +           my $sharedlib = $libname.$shrext;
> >             my $sharedlib_symlink;
> >  
> >             if ($gp->static || $gp->all_static) {
> > @@ -277,7 +278,7 @@ sub run($class, $ltprog, $gp, $ltconfig)
> >             }
> >             if (defined $gp->release) {
> >                     $sharedlib_symlink = $sharedlib;
> > -                   $sharedlib = $libname.'-'.$gp->release.'.so';
> > +                   $sharedlib = $libname.'-'.$gp->release.$shrext;
> >             }
> >             if ($gp->avoid_version ||
> >                     (defined $gp->release && !$gp->version_info)) {
> > 
> 
> -- 
> jca

Reply via email to