]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix pthread_setname detection to fail on warnings.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 17 Apr 2026 15:13:14 +0000 (17:13 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 17 Apr 2026 15:13:14 +0000 (17:13 +0200)
configure
configure.ac
doc/Changelog

index c7fc98c4e6f61b35ac838fa208d21805a79d5852..703faec779d62e5263d351f8f176f9eb0993d367 100755 (executable)
--- a/configure
+++ b/configure
@@ -19092,6 +19092,8 @@ then :
 
 fi
 
+       BAKCFLAGS="$CFLAGS"
+       CFLAGS="$CFLAGS -Werror"
        # MacOS only has 1 argument, the name.
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np has only 1 argument" >&5
 printf %s "checking whether pthread_setname_np has only 1 argument... " >&6; }
@@ -19240,6 +19242,7 @@ printf "%s\n" "no" >&6; }
 
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+       CFLAGS="$BAKCFLAGS"
 fi
 
 # check solaris thread library
index 265fcbdace81cf9a6349f0f5dcf13d6c2dec0bc7..4874c57c4a966db6320158d81f92d6b9d744196e 100644 (file)
@@ -736,6 +736,8 @@ if test x_$ub_have_pthreads != x_no; then
        # Some OSes have the extra non-portable functions in a specific
        # header file.
        AC_CHECK_HEADERS([pthread_np.h],,, [AC_INCLUDES_DEFAULT])
+       BAKCFLAGS="$CFLAGS"
+       CFLAGS="$CFLAGS -Werror"
        # MacOS only has 1 argument, the name.
        AC_MSG_CHECKING([whether pthread_setname_np has only 1 argument])
        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT
@@ -796,6 +798,7 @@ if test x_$ub_have_pthreads != x_no; then
        ],[
            AC_MSG_RESULT(no)
        ])
+       CFLAGS="$BAKCFLAGS"
 fi
 
 # check solaris thread library
index b1c4e4f54fcdaad7830aa5b956a04580770aa725..1c689ea6384a4320dfee6d68f505dc455eb0e0c8 100644 (file)
@@ -17,6 +17,7 @@
        - Fix subnet store of servfail to not leak memory.
        - Update generated man pages.
        - Update generated configure, with autoconf.
+       - Fix pthread_setname detection to fail on warnings.
 
 17 April 2026: Yorgos
        - Merge #1400: Support pthread_setname_np. Adds support for