<html><head></head><body>Hi,<br><br>Most likely that library should only be linked in some target binaries, otherwise packaging system will whine. Same as thread and socket stuff.<br><br><div class="gmail_quote">Le 13 janvier 2020 14:50:49 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">At least gcc 8 for the Raspberry Pi needs it.<hr> configure.ac | 17 +++++++++++++++++<br> 1 file changed, 17 insertions(+)<br><br>diff --git a/configure.ac b/configure.ac<br>index c2a2a231cee..a7cf39d2174 100644<br>--- a/configure.ac<br>+++ b/configure.ac<br>@@ -70,6 +70,23 @@ AC_C_INLINE<br> AC_C_RESTRICT<br> AX_CXX_COMPILE_STDCXX_14([noext], [mandatory])<br> <br>+dnl Check the compiler supports atomics in C<br>+AC_MSG_CHECKING([C atomics])<br>+AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdatomic.h>],[<br>+atomic_uintmax_t test;<br>+atomic_init(&test, 0);<br>+atomic_fetch_add_explicit(&test, 2u, memory_order_relaxed);<br>+])], [AC_MSG_RESULT([built-in])], [<br>+  LDFLAGS="$LDFLAGS -latomic"<br>+  AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdatomic.h>],[<br>+atomic_uintmax_t test;<br>+atomic_init(&test, 0);<br>+atomic_fetch_add_explicit(&test, 2u, memory_order_relaxed);<br>+])],[AC_MSG_RESULT([using -latomic])],[<br>+  AC_MSG_ERROR([VLC requires atomics support])<br>+  ])<br>+])<br>+<br> dnl Extend the --help string at the current spot.<br> AC_DEFUN([EXTEND_HELP_STRING], [m4_divert_once([HELP_ENABLE], [$1])])<br> </pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>