mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Borleis <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Alan Martinović" <Alan.Martinovic@zenitel.com>
Subject: Re: [ptxdist] Building root-debug without any optimisation
Date: Mon, 20 Jul 2015 09:49:32 +0200	[thread overview]
Message-ID: <201507200949.32453.jbe@pengutronix.de> (raw)
In-Reply-To: <916A03CCEB30DF44AD98D4CFDC7448D0577FAD3F@nooslzsmx1.zenitelcss.com>

Hi Alan,

On Monday 20 July 2015 09:37:00 Alan Martinović wrote:
> I've noticed that the open source apps built with automake have default
> compile flags "-g -O2". I would like to get a optimization free root-debug
> build with debug symbols. I can replace all occurrences of "-g -O2" with
> "-g" in configure files but would like to hear comments if there is a
> better way of doing this. For example.
> Passing a global CFLAGS="-g" to all ./configure scripts?

Yes, passing CFLAGS to all configure scripts will disable the automatic 
addition of the "-O2". You could also try to add "-g -O0", but sometimes 
packages tend to fail to build with the "O0" setting. And for best debugging 
you should disable builtins and inlining as well.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Linux Solutions for Science and Industry      | Phone: +49-5121-206917-5128 |
Peiner Str. 6-8, 31137 Hildesheim, Germany    | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2015-07-20  7:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20  7:37 Alan Martinović
2015-07-20  7:49 ` Juergen Borleis [this message]
2015-07-20  8:06   ` Juergen Borleis
2015-07-20  8:25     ` Alan Martinović
2015-07-20  8:52       ` Juergen Borleis
2015-07-20  9:36         ` Olbrich Michael
2015-07-20 11:00           ` Alan Martinović

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201507200949.32453.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=Alan.Martinovic@zenitel.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox