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