This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/81358] libatomic not automatically linked with C11 code
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Jul 2017 17:01:14 +0000
- Subject: [Bug driver/81358] libatomic not automatically linked with C11 code
- Auto-submitted: auto-generated
- References: <bug-81358-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
See what I said in
<https://gcc.gnu.org/ml/gcc-patches/2013-11/msg02605.html> - I think
linking --as-needed -latomic --no-as-needed makes sense by default when
--as-needed is supported. The problem would be any platforms where (a)
there is no --as-needed support, but (b) shared libraries are supported
and linking with a shared library introduces a dependency into the binary
even if no symbols from that shared library are used.