What I would prefer is something similar to --prefix=, so that I could 
just add to the list, rather than replacing it.  I.e.,

./configure --prefix=/sw --with-GL=/sw --add_switches="-wno_long_double"

this way I don't have to know what the current configuration is.

Just a thought,

Jonathan Polley

On Tuesday, July 2, 2002, at 04:07 AM, [EMAIL PROTECTED] wrote:

> Jonathan Polley wrote:
>>
>> Along the lines of adding the -pedantic option, I would like to add an
>> ability (probably at ./configure time) to specify additional compile
>> options.  Since one of my platforms is a Mac, I would like to be able to
>> add -wno_long_double, as it keeps telling me that their size is
>> non-portable.
>
> You have this ability already.  You just need to set the "CFLAGS" and 
> "CXXFLAGS" environment variables while running "configure".  Have a look 
> at the make files first to see what the default value is.  For GCC it is 
> "-g -O2" for both, so you could do:
>
> [In Bash]
>
>   GCCFLAGS="-g -O2 -wno_long_double"
>   CFLAGS="$GCCFLAGS" CXXFLAGS="$GCCFLAGS" ./configure
>
> [In csh? (I'm not sure about this)]
>
>   env CFLAGS="-g -O2 -wno_long_double" CXXFLAGS="-g -O2 -wno_long_double"
>  ./configure
>
> - Julian
>
>
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to