Bo Peng wrote: >> Abdelrazak Younes wrote: >> One bug though: When I pass CCFLAGS="-O3 -w" >> to scons, I see that the options is just appended >> to the default options (-O2 -Wall), ex:
>> g++ -o release\common\frontends\qt3\QCommandBuffer.o >> -c -O3 -w -Wall -O2 > What exactly do you mean? Do you want me to > remove -O2 if -O3 is passed? This sounds difficult. We do things a little differently to this in the Makefile.ams. If someone passes in CCFLAGS (or defines a CCFLAGS) environment variable, then this is used verbatim. The user is then responsible for all CCFLAGS options passed to the compiler. We also use CPPFLAGS (IIRC) to enable the user to specify some flags which are appended onto the otherwise machine-generated CCFLAGS. If the user wants to just specify optimization/debug level, then I believe that he should pass --enable-optimization='-03' to configure. Perhaps you should invest some time in looking what has gone before? You appear to have re-invented the wheel several times already in this scons work... I would have thought it would become frustrating eventually ;-) Regards, Angus