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

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