Hi Jakub,

> As reported, libtool -export-symbols-regex doesn't work on Solaris
> when using GNU ld instead of Sun ld, libtool just always assumes Sun ld.
> As I'm unsure what is the maintainance status of libtool right now,

as it happens, libtool 2.4.7 has just been released on 2022-03-16 after
a hiatus of more than 5 years.  Whatever that means for future
maintenance...

> this patch solves it on the lto-plugin side instead, tests at configure time
> similar way how libssp and other target libraries test for symbol versioning
> (except omitting the symbol version because we just want one GLOBAL symbol
> and rest of them LOCAL), and will use the current way of
> -export-symbols-regex onload as fallback when this doesn't work.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux (where it now uses
> the GNU versioning instead of -export-symbols-regex onload).
> Ok for trunk if it works for Rainer too (both Sun and GNU ld)?

It did without any issues: tested on i386-pc-solaris2.11 (gas/ld and
gas/gld) and sparc-sun-solaris2.11 (gas/ld).

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to