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

b97401
From 3602ee9dcc74683f91fe4f9ca228aa17a6474403 Mon Sep 17 00:00:00 2001
b97401
From: Kamil Dudka <kdudka@redhat.com>
b97401
Date: Wed, 31 Oct 2012 11:38:30 +0100
b97401
Subject: [PATCH] prevent configure script from discarding -g in CFLAGS
b97401
 (#496778)
b97401
b97401
---
b97401
 m4/curl-compilers.m4 | 26 ++++++--------------------
b97401
 1 file changed, 6 insertions(+), 20 deletions(-)
b97401
b97401
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
b97401
index c64db4bc6..d115a4aed 100644
b97401
--- a/m4/curl-compilers.m4
b97401
+++ b/m4/curl-compilers.m4
b97401
@@ -106,18 +106,11 @@ AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
b97401
     clangvhi=`echo $clangver | cut -d . -f1`
b97401
     clangvlo=`echo $clangver | cut -d . -f2`
b97401
     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
b97401
-    flags_dbg_all="-g -g0 -g1 -g2 -g3"
b97401
-    flags_dbg_all="$flags_dbg_all -ggdb"
b97401
-    flags_dbg_all="$flags_dbg_all -gstabs"
b97401
-    flags_dbg_all="$flags_dbg_all -gstabs+"
b97401
-    flags_dbg_all="$flags_dbg_all -gcoff"
b97401
-    flags_dbg_all="$flags_dbg_all -gxcoff"
b97401
-    flags_dbg_all="$flags_dbg_all -gdwarf-2"
b97401
-    flags_dbg_all="$flags_dbg_all -gvms"
b97401
+    flags_dbg_all=""
b97401
     flags_dbg_yes="-g"
b97401
     flags_dbg_off=""
b97401
-    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
b97401
-    flags_opt_yes="-Os"
b97401
+    flags_opt_all=""
b97401
+    flags_opt_yes=""
b97401
     flags_opt_off="-O0"
b97401
   else
b97401
     AC_MSG_RESULT([no])
b97401
@@ -175,18 +168,11 @@ AC_DEFUN([CURL_CHECK_COMPILER_GNU_C], [
b97401
     gccvhi=`echo $gccver | cut -d . -f1`
b97401
     gccvlo=`echo $gccver | cut -d . -f2`
b97401
     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
b97401
-    flags_dbg_all="-g -g0 -g1 -g2 -g3"
b97401
-    flags_dbg_all="$flags_dbg_all -ggdb"
b97401
-    flags_dbg_all="$flags_dbg_all -gstabs"
b97401
-    flags_dbg_all="$flags_dbg_all -gstabs+"
b97401
-    flags_dbg_all="$flags_dbg_all -gcoff"
b97401
-    flags_dbg_all="$flags_dbg_all -gxcoff"
b97401
-    flags_dbg_all="$flags_dbg_all -gdwarf-2"
b97401
-    flags_dbg_all="$flags_dbg_all -gvms"
b97401
+    flags_dbg_all=""
b97401
     flags_dbg_yes="-g"
b97401
     flags_dbg_off=""
b97401
-    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
b97401
-    flags_opt_yes="-O2"
b97401
+    flags_opt_all=""
b97401
+    flags_opt_yes=""
b97401
     flags_opt_off="-O0"
b97401
     CURL_CHECK_DEF([_WIN32], [], [silent])
b97401
   else
b97401
-- 
b97401
1.7.1
b97401