Re: [MoM] ampl-netlib-solvers
On Tue, Sep 15, 2020 at 03:51:50PM -0400, Aaron M. Ucko wrote:
> Andreas Tille <andreas@an3as.eu> writes:
>
> > I: ampl-netlib-solvers: unstripped-static-library usr/lib/x86_64-linux-gnu/amplsolver.a(asldate.o)
> [...]
> > I have not seen this info before but considering the size of
> > usr/lib/x86_64-linux-gnu/amplsolver.a I suspect all needed libraries
> > are statically linked which is what we do not want.
>
> Not necessarily; the library may in fact simply be unstripped. In
> particular, it looks like dh_strip covers static (*.a) libraries only
> when their names start with the usual "lib" prefix. If you specifically
> need an unprefixed name, I suppose it would work to install the library
> as libamplsolver.a so that dh_strip will see it, and direct dh_link to
> establish an unprefixed symlink. If you're using Debhelper level 13 or
> higher, you can do so without touching debian/rules by simply listing
>
> usr/lib/${DEB_HOST_MULTIARCH}/libamplsolver.a usr/lib/${DEB_HOST_MULTIARCH}/amplsolver.a
>
> in debian/ampl-netlib-solvers.links.
I admit that would have been my next suggestion to name the file lib*.a.
I did not expexted that this might solve the issue that the library
might be unstripped right now. Thanks a lot for the hint.
> Making a shared version of this library might be a good idea regardless.
Definitely. It will be the next step.
Thanks a lot for your hints
Andreas.
--
http://fam-tille.de
Reply to: