Package: log4shib / 2.0.0-2

Simplify-C-XX-FLAGS-handling.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <[email protected]>
Date: Sat, 24 Nov 2018 15:57:59  0100
Subject: Simplify C(XX)FLAGS handling

Leave the default at -g -O2 as AC_PROG_CC sets it; such options are
better customized by setting C(XX)FLAGS on the command line.
Defining NDEBUG is risky, don't do that; use --enable-debug for
producing the debug variant only (which is identical to the normal
variant at the moment).
---
 configure.ac | 9    ------
 1 file changed, 3 insertions( ), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index c2912a0..49dae10 100644
--- a/configure.ac
    b/configure.ac
@@ -31,15  31,12 @@ AC_ARG_WITH(idsa, AS_HELP_STRING(--with-idsa, [include idsa support]),)
 AC_CANONICAL_HOST
 
 AC_ARG_ENABLE(debug,
-    AS_HELP_STRING(--enable-debug, [Have GCC compile with symbols (Default = no)]),
     AS_HELP_STRING(--enable-debug, [Produce debug variant (Default = no)]),
     enable_debug=$enableval, enable_debug=no)
 
 if test "$enable_debug" = "yes" ; then
-    AM_CFLAGS="-g -D_DEBUG"
-    AM_CXXFLAGS="-g -D_DEBUG"
-else
-    AM_CFLAGS="-O2 -DNDEBUG"
-    AM_CXXFLAGS="-O2 -DNDEBUG"
     AM_CFLAGS="-D_DEBUG"
     AM_CXXFLAGS="-D_DEBUG"
 fi
 
 LT_INIT([disable-static])