Hi Jonathan,

>> Jakub explained to me that -flink-atomic is only enabled if the linker
>> supports --as-needed, which the docs completely fail to explain. Just
>> saying "on targets that support it" is inadequate.
>>
>> The option is on for targets which support libatomic *and* which
>> support the --as-needed linker flag. So GNU ld,, gold, lld, mold, ...
>> but *not* Solaris ld for example.
>
> Actually it looks like Solaris ld supports the option too ... but not
> all linkers do, and that affects when -flink-libatomic is on by
> default.

indeed: Solaris ld gained many options for compatiblity with GNU ld in
the last couple of years.  If it were only for --as-needed, the native
-z ignore should work, too.

        Rainer

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

Reply via email to