Link against libatomic for TBB check to prevent FTBFS on armel.
authorDoug Torrance <dtorrance@debian.org>
Tue, 28 Jun 2022 21:13:20 +0000 (22:13 +0100)
committerDoug Torrance <dtorrance@debian.org>
Tue, 28 Jun 2022 21:13:20 +0000 (22:13 +0100)
Forwarded: https://github.com/Macaulay2/M2/pull/2528
Last-Update: 2022-06-14

Gbp-Pq: Name libatomic.patch

M2/configure.ac

index 77bbe9ec8567a103f6af32c1e4e306ebb615a4d6..43b42f87f91536495ecf3e7362f79c6ba96b69e2 100644 (file)
@@ -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])])