Blame SOURCES/0102-curl-7.36.0-debug.patch

d73b74
From 6710648c2b270c9ce68a7d9f1bba1222c7be8b58 Mon Sep 17 00:00:00 2001
d73b74
From: Kamil Dudka <kdudka@redhat.com>
d73b74
Date: Wed, 31 Oct 2012 11:38:30 +0100
d73b74
Subject: [PATCH] prevent configure script from discarding -g in CFLAGS (#496778)
d73b74
d73b74
---
d73b74
 configure            |   13 +++----------
d73b74
 m4/curl-compilers.m4 |   13 +++----------
d73b74
 2 files changed, 6 insertions(+), 20 deletions(-)
d73b74
d73b74
diff --git a/configure b/configure
d73b74
index 8f079a3..53b4774 100755
d73b74
--- a/configure
d73b74
+++ b/configure
d73b74
@@ -16414,18 +16414,11 @@ $as_echo "yes" >&6; }
d73b74
     gccvhi=`echo $gccver | cut -d . -f1`
d73b74
     gccvlo=`echo $gccver | cut -d . -f2`
d73b74
     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
d73b74
-    flags_dbg_all="-g -g0 -g1 -g2 -g3"
d73b74
-    flags_dbg_all="$flags_dbg_all -ggdb"
d73b74
-    flags_dbg_all="$flags_dbg_all -gstabs"
d73b74
-    flags_dbg_all="$flags_dbg_all -gstabs+"
d73b74
-    flags_dbg_all="$flags_dbg_all -gcoff"
d73b74
-    flags_dbg_all="$flags_dbg_all -gxcoff"
d73b74
-    flags_dbg_all="$flags_dbg_all -gdwarf-2"
d73b74
-    flags_dbg_all="$flags_dbg_all -gvms"
d73b74
+    flags_dbg_all=""
d73b74
     flags_dbg_yes="-g"
d73b74
     flags_dbg_off=""
d73b74
-    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
d73b74
-    flags_opt_yes="-O2"
d73b74
+    flags_opt_all=""
d73b74
+    flags_opt_yes=""
d73b74
     flags_opt_off="-O0"
d73b74
 
d73b74
     OLDCPPFLAGS=$CPPFLAGS
d73b74
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
d73b74
index 0cbba7a..9175b5b 100644
d73b74
--- a/m4/curl-compilers.m4
d73b74
+++ b/m4/curl-compilers.m4
d73b74
@@ -157,18 +157,11 @@ AC_DEFUN([CURL_CHECK_COMPILER_GNU_C], [
d73b74
     gccvhi=`echo $gccver | cut -d . -f1`
d73b74
     gccvlo=`echo $gccver | cut -d . -f2`
d73b74
     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
d73b74
-    flags_dbg_all="-g -g0 -g1 -g2 -g3"
d73b74
-    flags_dbg_all="$flags_dbg_all -ggdb"
d73b74
-    flags_dbg_all="$flags_dbg_all -gstabs"
d73b74
-    flags_dbg_all="$flags_dbg_all -gstabs+"
d73b74
-    flags_dbg_all="$flags_dbg_all -gcoff"
d73b74
-    flags_dbg_all="$flags_dbg_all -gxcoff"
d73b74
-    flags_dbg_all="$flags_dbg_all -gdwarf-2"
d73b74
-    flags_dbg_all="$flags_dbg_all -gvms"
d73b74
+    flags_dbg_all=""
d73b74
     flags_dbg_yes="-g"
d73b74
     flags_dbg_off=""
d73b74
-    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
d73b74
-    flags_opt_yes="-O2"
d73b74
+    flags_opt_all=""
d73b74
+    flags_opt_yes=""
d73b74
     flags_opt_off="-O0"
d73b74
     CURL_CHECK_DEF([_WIN32], [], [silent])
d73b74
   else
d73b74
-- 
d73b74
1.7.1
d73b74