mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
build: link libatomic if available
It'll generally exist but be empty on systems that don't need it. (Some 32bit platforms now need it due to 64bit time_t, and the platform may not have 64bit atomic ops.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
65c2593a12
commit
342400e7c6
|
@ -1095,6 +1095,8 @@ dnl -------------------------
|
|||
AC_CHECK_HEADERS([stropts.h sys/ksym.h \
|
||||
linux/version.h asm/types.h endian.h sys/endian.h])
|
||||
|
||||
AC_CHECK_LIB([atomic], [main], [LIBS="$LIBS -latomic"], [], [])
|
||||
|
||||
ac_stdatomic_ok=false
|
||||
AC_DEFINE([FRR_AUTOCONF_ATOMIC], [1], [did autoconf checks for atomic funcs])
|
||||
AC_CHECK_HEADER([stdatomic.h],[
|
||||
|
|
Loading…
Reference in a new issue