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;
_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev