]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
configure: fix detection of pthread_setaffinity_np
authorDaniel Salzman <daniel.salzman@nic.cz>
Tue, 9 Apr 2019 09:26:10 +0000 (11:26 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Tue, 9 Apr 2019 09:26:10 +0000 (11:26 +0200)
configure.ac

index c76dea1a47d49b770260fa8735fa700108b765dc..a8b993f1a728a8e16d6cd88197cedddb674e6955 100644 (file)
@@ -594,9 +594,12 @@ LIBS="$save_LIBS"
 AC_HEADER_RESOLV
 AC_CHECK_HEADERS_ONCE([pthread_np.h sys/uio.h])
 
+save_LIBS="$LIBS"
+LIBS="$LIBS $pthread_LIBS"
 # Checks for optional library functions.
 AC_CHECK_FUNCS([accept4 clock_gettime fgetln getline initgroups malloc_trim \
                 pthread_setaffinity_np setgroups strlcat strlcpy sysctlbyname])
+LIBS="$save_LIBS"
 
 # Check for mandatory library functions.
 AC_CHECK_FUNC([vasprintf], [], [