Merge pull request #7639 from bandi13/fixLibOQS

liboqs depends on pthreads now
This commit is contained in:
Daniel Pouzzner
2024-06-12 14:52:50 -04:00
committed by GitHub

View File

@ -1130,6 +1130,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"
AM_CFLAGS="$AM_CFLAGS -pthread"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <oqs/common.h>]], [[ OQS_init(); ]])], [ liboqs_linked=yes ],[ liboqs_linked=no ])