]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Travis, fix warning in ubsan compile.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 24 Mar 2021 14:34:26 +0000 (15:34 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 24 Mar 2021 14:34:26 +0000 (15:34 +0100)
- Fix configure Targetconfiditionals.h header check, to use compile.

.travis.yml
configure
configure.ac
doc/Changelog

index f2fc6c19f2eba2529092eb0ae0e8a757d4ef265d..1f514b5d08d4499b518c278794f4556801f27a03 100644 (file)
@@ -327,7 +327,7 @@ script:
   - |
     export MAKE_TEST="yes"
     if [ "$TEST_UBSAN" = "yes" ]; then
-      export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover"
+      export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover=all"
     elif [ "$TEST_ASAN" = "yes" ]; then
       export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address"
     fi
index ab4be4f36b1bfd347f9e62e5e55c328c6949a6d5..40a0d4e00ed8e247b518b84bde227c283fbd979f 100755 (executable)
--- a/configure
+++ b/configure
@@ -14793,7 +14793,8 @@ done
 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
 for ac_header in TargetConditionals.h
 do :
-  ac_fn_c_check_header_mongrel "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default"
+  ac_fn_c_check_header_compile "$LINENO" "TargetConditionals.h" "ac_cv_header_TargetConditionals_h" "$ac_includes_default
+"
 if test "x$ac_cv_header_TargetConditionals_h" = xyes; then :
   cat >>confdefs.h <<_ACEOF
 #define HAVE_TARGETCONDITIONALS_H 1
index f38f3a9fd9e9e17670beb21993067e454dea3ffd..439f1876bee0f36cf5912efaa5cf30020fda3eee 100644 (file)
@@ -407,7 +407,7 @@ AC_CHECK_HEADERS([net/if.h],,, [
 ])
 
 # Check for Apple header. This uncovers TARGET_OS_IPHONE, TARGET_OS_TV or TARGET_OS_WATCH
-AC_CHECK_HEADERS([TargetConditionals.h])
+AC_CHECK_HEADERS([TargetConditionals.h],,, [AC_INCLUDES_DEFAULT])
 
 # check for types.  
 # Using own tests for int64* because autoconf builtin only give 32bit.
index a524c7f3a397317be46ba62db9e9f16036ad784f..af11e488bfee07c1ec2cba8cf3301f21c7fa2b4e 100644 (file)
@@ -2,6 +2,8 @@
        - Fix deprecation test to work for iOS TVOS and WatchOS, it uses
          CFLAGS and CPPFLAGS and also checks if the item is unavailable.
        - Travis, fix script to fail when tasks fail.
+       - Travis, fix warning in ubsan compile.
+       - Fix configure Targetconfiditionals.h header check, to use compile.
 
 23 March 2021: Wouter
        - Travis enable all tests again. Clang analyzer only a couple times,