[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: configure: use CPPFLAGS for _DEBU
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: configure: use CPPFLAGS for _DEBUG macro |
Date: |
Wed, 04 May 2022 17:32:52 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 5e45beda configure: use CPPFLAGS for _DEBUG macro
5e45beda is described below
commit 5e45bedae5684ac71347fcb6b8d43740866417ed
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed May 4 18:32:33 2022 +0300
configure: use CPPFLAGS for _DEBUG macro
MHD_config.h is not used by some source files. CPPFLAGS force usage of
required assert() mode.
---
configure.ac | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 663b100e..dabe94bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3068,7 +3068,8 @@ AC_MSG_RESULT([[$enable_asserts]])
AS_VAR_IF([[enable_asserts]], [["yes"]],
[
- AC_DEFINE([[_DEBUG]], [[1]], [Define to use debug asserts.])
+ MHD_PREPEND_FLAG_TO_VAR([CPPFLAGS_ac],[-D_DEBUG=1])
+ CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}"
[mhd_assert_test_prg="#include <assert.h>
int pos_val(void) {return 5;}
int neg_val(void) {return -5;}
@@ -3089,7 +3090,10 @@ AS_VAR_IF([[enable_asserts]], [["yes"]],
[AC_DEFINE([[HAVE_ASSERT]], [[1]], [Define if you have usable assert()
and assert.h])])
AS_UNSET([mhd_assert_test_prg])
],
- [AC_DEFINE([[NDEBUG]], [[1]], [Define to disable usage of debug asserts.])]
+ [
+ MHD_PREPEND_FLAG_TO_VAR([CPPFLAGS_ac],[-DNDEBUG=1])
+ CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}"
+ ])]
)
AS_UNSET([enabled_sanitizers])
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: configure: use CPPFLAGS for _DEBUG macro,
gnunet <=