]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to have empty definition when not supported for weak attribute.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 23 Jul 2024 08:02:39 +0000 (10:02 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 23 Jul 2024 08:02:39 +0000 (10:02 +0200)
configure
configure.ac
doc/Changelog

index 6a4066771ebb14fc53da1441e59c17176c8792de..daa37e504d838c4ed7d10ebede44e8a7fcc39c76 100755 (executable)
--- a/configure
+++ b/configure
@@ -6976,6 +6976,10 @@ printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h
 
 printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
 
+else
+
+printf "%s\n" "#define ATTR_WEAK /**/" >>confdefs.h
+
 fi
 
 
index 977b91a24e8ce962f898e7b51c1dba4e42df9c07..4d17fb8c192785102d20600b061b18de8860d441 100644 (file)
@@ -339,6 +339,8 @@ AC_MSG_RESULT($ac_cv_c_weak_attribute)
 if test $ac_cv_c_weak_attribute = yes; then
   AC_DEFINE(HAVE_ATTR_WEAK, 1, [Whether the C compiler accepts the "weak" attribute])
   AC_DEFINE(ATTR_WEAK, [__attribute__((weak))], [apply the weak attribute to a symbol])
+else
+  AC_DEFINE(ATTR_WEAK,[], [apply the weak attribute to a symbol])
 fi
 ])dnl End of CHECK_WEAK_ATTRIBUTE
 
index e9b2e7a40f079af2000d74ab94392920753c378e..45099106da776271eaab7b43b6b41db8b4856cd1 100644 (file)
@@ -7,6 +7,7 @@
          fallthrough attribute annotations.
        - Fix compile when the compiler does not support the noreturn
          attribute.
+       - Fix to have empty definition when not supported for weak attribute.
 
 19 July 2024: Wouter
        - Add dnstap-sample-rate that logs only 1/N messages, for high volume