[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disabling optimization
From: |
Bob Proulx |
Subject: |
Re: Disabling optimization |
Date: |
Fri, 19 Nov 2004 00:42:43 -0700 |
User-agent: |
Mutt/1.5.6+20040907i |
Bob Friesenhahn wrote:
> Andrew Suffield wrote:
> >>>What you're all trying to say is this:
> >>>
> >>>CXXFLAGS="-g -O0 ${CXXFLAGS}"
> >>Nope, this prevents overriding CXXFLAGS from the environment.
> >
> >It does not. I do it all the time.
On HP-UX:
aCC -O0
aCC: warning 901: unknown option: `-0': use +help for online documentation.
I hate it when developers do things like that. It frequently means I
need to hack the configure script to build it. (And I do mean the
configure script. Usually the developer is using a version of
autoconf that I can't replicate.) Of course in my example case it is
only a warning. But in general you can't count on that.
> How does the user portably remove/override the -g and -O0 options? It
> seems that you are depending on the user's compiler to support a way
> to subtract from existing options. You are also expecting that the
> user's compiler supports -O0 and doesn't simply exit.
Agreed.
Bob
- Re: Disabling optimization, (continued)
- Re: Disabling optimization, Andreas Schwab, 2004/11/18
- Re: Disabling optimization, Ralf Corsepius, 2004/11/18
- Re: Disabling optimization, Andrew Suffield, 2004/11/18
- Re: Disabling optimization, Ralf Corsepius, 2004/11/18
- Re: Disabling optimization, Andrew Suffield, 2004/11/18
- Re: Disabling optimization, Bob Friesenhahn, 2004/11/18
- Re: Disabling optimization, Andrew Suffield, 2004/11/18
- Re: Disabling optimization, Bob Friesenhahn, 2004/11/18
- Re: Disabling optimization, Thomas 'Tom' R. Treadway III, 2004/11/18
- Re: Disabling optimization, Andreas Schwab, 2004/11/18
- Re: Disabling optimization,
Bob Proulx <=
- Re: Disabling optimization, Andrew Suffield, 2004/11/19
- Re: Disabling optimization, Thomas Dickey, 2004/11/19
- Re: Disabling optimization, Andrew Suffield, 2004/11/19
- Re: Disabling optimization, Thomas Dickey, 2004/11/19
- Re: Disabling optimization, Andrew Suffield, 2004/11/19
- Re: Disabling optimization, jfasch, 2004/11/19
- Re: Disabling optimization, Andrew Suffield, 2004/11/19
- Re: Disabling optimization, jfasch, 2004/11/19
- Re: Disabling optimization, Andrew Suffield, 2004/11/19
- Re: Disabling optimization, Bob Friesenhahn, 2004/11/19