curl/m4
Daniel Katz e7511f853a
curl-functions.m4: check whether atomics can link rather than just compile
Some build toolchains support C11 atomics (i.e., _Atomic types), but
will not link the associated atomics runtime unless a flag is passed. In
such an environment, linking an application with libcurl.a can fail due
to undefined symbols for atomic load/store functions.

I encountered this behavior when upgrading curl to 7.84.0 and attempting
to build with Solaris Studio 12.6. Solaris provides the flag
-xatomic=[gcc | studio], allowing users to link to one of two atomics
runtime implementations. However, if the user does not provide this
flag, then neither runtime is linked. This led to builds failing in CI.

Closes #9190
2022-07-21 16:30:19 +02:00
..
.gitignore copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
ax_compile_check_sizeof.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-amissl.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-bearssl.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-compilers.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-confopts.m4 curl-confopts: remove leftover AC_REQUIREs 2022-07-19 21:05:25 +02:00
curl-functions.m4 curl-functions.m4: check whether atomics can link rather than just compile 2022-07-21 16:30:19 +02:00
curl-gnutls.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-mbedtls.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-nss.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-openssl.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-override.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-reentrant.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-rustls.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-schannel.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-sectransp.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-sysconfig.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
curl-wolfssl.m4 curl-wolfssl.m4: add options header when building test code 2022-07-20 10:18:05 +02:00
xc-am-iface.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
xc-cc-check.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
xc-lt-iface.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
xc-translit.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
xc-val-flgs.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
zz40-xc-ovr.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
zz50-xc-ovr.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00
zz60-xc-ovr.m4 copyright: make repository REUSE compliant 2022-06-13 09:13:00 +02:00