From: Doug Torrance Date: Tue, 14 Jun 2022 14:41:24 +0000 (+0100) Subject: Link against libatomic for TBB check to prevent FTBFS on armel. X-Git-Tag: archive/raspbian/1.20+ds-6+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6f201dd3b4b1b060d15610824da19791c1d02640;p=macaulay2.git Link against libatomic for TBB check to prevent FTBFS on armel. Forwarded: https://github.com/Macaulay2/M2/pull/2528 Last-Update: 2022-06-14 Gbp-Pq: Name libatomic.patch --- diff --git a/M2/configure.ac b/M2/configure.ac index 77bbe9e..43b42f8 100644 --- a/M2/configure.ac +++ b/M2/configure.ac @@ -404,7 +404,8 @@ then AC_DEFINE(WITH_TBB,1,[whether the tbb library has been enabled by the build AC_SUBST(LIBTBB) dnl LIBTBB is usually set to -ltbb AC_LANG(C++) AC_CHECK_HEADER(tbb/tbb.h, - [AC_SEARCH_LIBS(TBB_runtime_interface_version,"tbb", + [LIBS="$LIBS -latomic" + AC_SEARCH_LIBS(TBB_runtime_interface_version,"tbb", LIBTBB=$ac_cv_search_TBB_runtime_interface_version, [AC_MSG_ERROR([tbb library not found])])], [AC_MSG_ERROR([tbb include file (tbb.h) not found])])