Fix reproducability issue reported by YP autobuilder
[AGL/meta-agl.git] / meta-agl-core / recipes-connectivity / connman-ncurses / connman-ncurses / 0001-Do-not-overwrite-CFLAGS.patch
1 From 50ca6e010c3ca3f7cb06dfdf5dbdfaacd4f4749a Mon Sep 17 00:00:00 2001
2 From: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
3 Date: Tue, 19 Jul 2022 23:28:21 +0200
4 Subject: [PATCH] Do not overwrite CFLAGS
5
6 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
7 ---
8  configure.ac | 16 ++++++++--------
9  1 file changed, 8 insertions(+), 8 deletions(-)
10
11 diff --git a/configure.ac b/configure.ac
12 index 7e3307f..c385bc0 100644
13 --- a/configure.ac
14 +++ b/configure.ac
15 @@ -24,14 +24,14 @@ AC_PROG_CC
16  AC_PROG_CC_C99
17  AM_PROG_CC_C_O
18  
19 -CFLAGS=""
20 -
21 -AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
22 -                       [disable code optimization through compiler]), [
23 -       if (test "${enableval}" = "no"); then
24 -               CFLAGS="$CFLAGS -O0 -U_FORTIFY_SOURCE"
25 -       fi
26 -])
27 +#CFLAGS=""
28 +#
29 +#AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
30 +#                      [disable code optimization through compiler]), [
31 +#      if (test "${enableval}" = "no"); then
32 +#              CFLAGS="$CFLAGS -O0 -U_FORTIFY_SOURCE"
33 +#      fi
34 +#])
35  
36  AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
37                         [enable compiling with debugging information]), [