Skip to content

Commit

Permalink
Merge pull request #15889 from opensourcerouting/build-libatomic
Browse files Browse the repository at this point in the history
build: link libatomic if available
  • Loading branch information
donaldsharp committed May 6, 2024
2 parents 11fe070 + 342400e commit 9de2f13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,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],[
Expand Down

0 comments on commit 9de2f13

Please sign in to comment.