public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Manfred Hollstein <manfred@s-direktnet.de>
To: Daniel.Egger@t-online.de
Cc: egcs@cygnus.com
Subject: Re: Debugging flags
Date: Sat, 27 Jun 1998 07:22:00 -0000	[thread overview]
Message-ID: <13716.51728.315731.379406@saturn.hollstein.net> (raw)
In-Reply-To: <98062616030401.00643@z2.n2480.f898.fidonet.org>

On Fri, 26 June 1998, 15:57:24, Daniel.Egger@t-online.de wrote:

 > On Thu, 25 Jun 1998, Manfred Hollstein wrote:
 > 
 > >$ env CC="{your_preferred_C_compiler}" CFLAGS="-O2" LDFLAGS=-s \
 > >  ${path_to_egcs_directory}/configure ...
 > 
 > >and then simply call:
 > 
 > >$ make bootstrap; make check; make install
 > 
 >  Guess what.... it won't work the way you believe it to do ... why? Because

Sure it does work! Have you actually looked at the generated toplevel Makefile's
CFLAGS/CXXFLAGS? They contain what you've been using at configure time and, since
they are passed down via BASE_FLAGS_TO_PASS, each submake will use them, although
their Makefile might contain different flags.

 >  there are hardcoded -g's which  won't get substituted. I'm trying to make
 >  the whole process more consistent. That means we should use the same
 >  mechanisms all over the tree. At the moment it's a whole chaos....

Not, if you were working as suggested above.

 > 
 > >It's  really that simple.  And, don't omit  `-g' from CXXFLAGS as this
 > >will prevent you   from being able   to  use your   favourite debugger
 > >looking at  C++ objects whose type definitions  originate from  one of
 > >those C++ libs.
 > 
 >  I seldom use debuggers to debug egcs. And if I intend to do so I'll compile
 >  it completely with debugging. For normal programs I don't need a debugable
 >  libstdc++.....
 > 
 > > [patch removed as it is not necessary]
 > 
 >  It may be not necessary but it would clarify things,,,,
 > 
 > --
 > 
 > Servus,
 >        Daniel
 > 

manfred

  parent reply	other threads:[~1998-06-27  7:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-24 17:23 Daniel Egger
1998-06-25  9:19 ` Manfred Hollstein
1998-06-25 12:07   ` Joe Buck
1998-06-26 13:32   ` Daniel Egger
1998-06-26 22:48     ` Mumit Khan
1998-06-27  7:22     ` Manfred Hollstein [this message]
1998-06-28 12:37       ` Daniel Egger

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=13716.51728.315731.379406@saturn.hollstein.net \
    --to=manfred@s-direktnet.de \
    --cc=Daniel.Egger@t-online.de \
    --cc=egcs@cygnus.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).