From 211742bfe05fd3af22b6da66ff7f58b4d09206ca Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Wed, 12 Jun 2024 13:45:57 -0400 Subject: [PATCH 1/2] liboqs depends on pthreads now --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 35f856e0f..257884857 100644 --- a/configure.ac +++ b/configure.ac @@ -1129,7 +1129,7 @@ AC_ARG_WITH([liboqs], [ AS_IF([ test "$ENABLED_EXPERIMENTAL" != "yes" ],[ AC_MSG_ERROR([LIBOQS requires --enable-experimental.]) ]) AC_MSG_CHECKING([for liboqs]) - LIBS="$LIBS -loqs" + LIBS="$LIBS -loqs -lpthread" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ OQS_init(); ]])], [ liboqs_linked=yes ],[ liboqs_linked=no ]) From 372f57e52882ba1537e9a111ef929d4579edb771 Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Wed, 12 Jun 2024 14:22:10 -0400 Subject: [PATCH 2/2] Address PR suggestions --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 257884857..4108d2b53 100644 --- a/configure.ac +++ b/configure.ac @@ -1129,7 +1129,8 @@ AC_ARG_WITH([liboqs], [ AS_IF([ test "$ENABLED_EXPERIMENTAL" != "yes" ],[ AC_MSG_ERROR([LIBOQS requires --enable-experimental.]) ]) AC_MSG_CHECKING([for liboqs]) - LIBS="$LIBS -loqs -lpthread" + LIBS="$LIBS -loqs" + AM_CFLAGS="$AM_CFLAGS -pthread" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ OQS_init(); ]])], [ liboqs_linked=yes ],[ liboqs_linked=no ])