summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtto Hollmann <otto.hollmann@suse.com>2022-11-21 13:01:53 +0100
committerOtto Hollmann <otto.hollmann@suse.com>2022-11-21 13:01:53 +0100
commit55dd6b7dc851df3ccf5e52019537f420e32450dd (patch)
treeda428a864479677134a0a0b5ee4ae115cf7ef99f
parentSynchronize haveged instances during switching root (diff)
downloadhaveged-55dd6b7dc851df3ccf5e52019537f420e32450dd.tar.xz
haveged-55dd6b7dc851df3ccf5e52019537f420e32450dd.zip
Link with -pthread
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 99451c9..ff1cbaa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,7 +10,7 @@ AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([subdir-objects no-dependencies])
AC_CONFIG_SRCDIR([src/haveged.c])
AC_CHECK_TYPES([uint32_t, uint8_t])
-HA_LDFLAGS=""
+HA_LDFLAGS="-pthread"
##libtool_start##
LT_INIT
@@ -73,7 +73,6 @@ AC_ARG_ENABLE(threads,
, enable_threads="no")
if test "x$enable_threads" = "xyes"; then
AC_DEFINE(NUMBER_CORES, 4, [Define maxium number of collection threads])
- HA_LDFLAGS="-pthread"
else
AC_DEFINE(NUMBER_CORES, 1, [Define to single collection thread])
fi