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

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