gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: [Gnash-dev] Appeal for help - please do a quick test


From: strk
Subject: Re: Re[2]: [Gnash-dev] Appeal for help - please do a quick test
Date: Wed, 6 Jun 2007 09:22:34 +0200

On Wed, Jun 06, 2007 at 09:08:34AM +0200, strk wrote:

> Alright, found the problem.
> -g -O2 will NOT be pushed if CXXFLAGS is overridden by user (theoretically).
> Our setting CXXFLAGS=$save_CXXFLAGS seems to be taken as such an override.
> Even if $save_CXXFLAGS is empty !!
> 
> To confirm just add the following in configure.ac:
> 
> save_CXXFLAGS="$CXXFLAGS"
> CXXFLAGS="$save_CXXFLAGS"
> 
> And the -g -O2 go away ...

Now, I have a patch, that checks for "original" CXXFLAGS being empty or not.
If empty, it will be unset after the tests.

This works fine, but prevents the user from setting CXXFLAGS to the empty string
in his own WILL.

Example:

        $ CXXFLAGS="" ./configure # will result in using default CXXFLAGS

                Same as:

        $ ./configure

This is unless anyone knows a tip to check if a variable is set or not using a 
bourne shell.
(ie: empty string counting as being set)

--strk;








reply via email to

[Prev in Thread] Current Thread [Next in Thread]