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