2020-04-17 16:06:52 +00:00
|
|
|
From 3602ee9dcc74683f91fe4f9ca228aa17a6474403 Mon Sep 17 00:00:00 2001
|
2012-10-31 10:45:28 +00:00
|
|
|
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
|
Date: Wed, 31 Oct 2012 11:38:30 +0100
|
2020-04-17 16:06:52 +00:00
|
|
|
Subject: [PATCH] prevent configure script from discarding -g in CFLAGS
|
|
|
|
(#496778)
|
2012-10-31 10:45:28 +00:00
|
|
|
|
|
|
|
---
|
2020-04-17 16:06:52 +00:00
|
|
|
configure | 26 ++++++--------------------
|
|
|
|
m4/curl-compilers.m4 | 26 ++++++--------------------
|
|
|
|
2 files changed, 12 insertions(+), 40 deletions(-)
|
2010-09-22 14:19:52 +00:00
|
|
|
|
|
|
|
diff --git a/configure b/configure
|
2020-04-17 16:06:52 +00:00
|
|
|
index d6d125f49..3eba7b15f 100755
|
2010-09-22 14:19:52 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2020-04-17 16:06:52 +00:00
|
|
|
@@ -16269,18 +16269,11 @@ $as_echo "no" >&6; }
|
|
|
|
clangvhi=`echo $clangver | cut -d . -f1`
|
|
|
|
clangvlo=`echo $clangver | cut -d . -f2`
|
|
|
|
compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 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"
|
|
|
|
flags_dbg_off=""
|
|
|
|
- flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
|
|
|
|
- flags_opt_yes="-Os"
|
|
|
|
+ flags_opt_all=""
|
|
|
|
+ flags_opt_yes=""
|
|
|
|
flags_opt_off="-O0"
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
@@ -16343,18 +16336,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
|
2020-04-17 16:06:52 +00:00
|
|
|
index c64db4bc6..d115a4aed 100644
|
2010-09-22 14:19:52 +00:00
|
|
|
--- a/m4/curl-compilers.m4
|
|
|
|
+++ b/m4/curl-compilers.m4
|
2020-04-17 16:06:52 +00:00
|
|
|
@@ -106,18 +106,11 @@ AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
|
|
|
|
clangvhi=`echo $clangver | cut -d . -f1`
|
|
|
|
clangvlo=`echo $clangver | cut -d . -f2`
|
|
|
|
compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 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"
|
|
|
|
flags_dbg_off=""
|
|
|
|
- flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
|
|
|
|
- flags_opt_yes="-Os"
|
|
|
|
+ flags_opt_all=""
|
|
|
|
+ flags_opt_yes=""
|
|
|
|
flags_opt_off="-O0"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
@@ -166,18 +159,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
|
|
|
|
|