Skip to content
Snippets Groups Projects
Commit bae40c79 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

configure: remove redundant -latomic test

This was superseded by fc8208ec.
parent 0758d7e5
No related branches found
No related tags found
1 merge request!1338configure: remove redundant -latomic test
Pipeline #187495 passed with stages
in 49 minutes and 16 seconds
......@@ -70,30 +70,6 @@ AC_C_INLINE
AC_C_RESTRICT
AX_CXX_COMPILE_STDCXX_14([noext], [mandatory])
dnl Check the compiler supports atomics in C
AC_MSG_CHECKING([C atomics])
VLC_SAVE_FLAGS
ATOMIC_LIB=""
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdatomic.h>],[
atomic_uintmax_t test;
atomic_init(&test, 0);
atomic_fetch_add_explicit(&test, 2u, memory_order_relaxed);
])], [AC_MSG_RESULT([built-in])], [
LDFLAGS="$LDFLAGS -latomic"
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdatomic.h>],[
atomic_uintmax_t test;
atomic_init(&test, 0);
atomic_fetch_add_explicit(&test, 2u, memory_order_relaxed);
])],[
AC_MSG_RESULT([using -latomic])
ATOMIC_LIB="-latomic"
],[
AC_MSG_ERROR([VLC requires atomics support])
])
])
VLC_RESTORE_FLAGS
AC_SUBST([ATOMIC_LIB])
dnl Extend the --help string at the current spot.
AC_DEFUN([EXTEND_HELP_STRING], [m4_divert_once([HELP_ENABLE], [$1])])
......
......@@ -412,7 +412,7 @@ libvlccore_la_SOURCES = \
libvlccore_la_LIBADD = $(LIBS_libvlccore) \
../compat/libcompat.la \
$(LTLIBINTL) $(LTLIBICONV) \
$(IDN_LIBS) $(SOCKET_LIBS) $(ATOMIC_LIB) $(LIBRT) $(LIBDL) $(LIBM)
$(IDN_LIBS) $(SOCKET_LIBS) $(LIBRT) $(LIBDL) $(LIBM)
libvlccore_la_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_libvlccore)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment