Login  Register

Re: CXXFLAGS in configure.in

Posted by Xiaowen Wang on May 07, 2002; 10:03am
URL: http://quantlib.414.s1.nabble.com/CXXFLAGS-in-configure-in-tp2035p2037.html

--- Luigi Ballabio <[hidden email]> wrote:

> At 02:35 PM 5/4/02 -0700, Xiaowen Wang wrote:
> >This script won't allow for customized CXXFLAGS.
> >Changing to the following will do:
> >
> >if test "$GXX" = yes -a -z "$CXXFLAGS"; then
> >     CXXFLAGS="-g -O3 -pedantic -Wall"
> >fi
>
> Xiaowen,
>          I made the change, but now I seem to get
> "-g -O2" out of
> nowhere---I sure didn't specify it. Do you have any
> idea where the above
> default could be stored? (it is not an environment
> variable, I checked those)

Yes, that also what I got when I didn't specify a
customized CXXFLAGS for configure.
As I recall, '-g O2' is specified as default flags
somewhere (most probably in configure.in). I won't
have access to my computer until later today, I'll
check it then and get back to you.

You may also want to do 'grep -n "\-O2"
./configure.in' to see whether it's there.

This change is intended for the following to work out:
CXXFLAGS="whatever flags you like" ./configure

Before making this change, as long as the compile is
g++, the CXXFLAGS is always set to "-g -O3 -pedantic
-Wall".

Cheers
Xiaowen

>
> Later,
>          Luigi
>


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com