On Sat, Apr 04, 2009 at 09:33:58AM -0500, DRC wrote: > Adam Tkac wrote: > > You can include those lines to jpeg/configure.ac: > > > > CFLAGS="$CFLAGS -O3" > > CXXFLAGS="$CXXFLAGS -O3" > > > > > No, that just adds to the CFLAGS/CXXFLAGS defined implicitly by > autoconf. Thus, I end up with 'cc -O2 -O3'. > > What I want is a way to change the implicit -O2 C flag based on whether > or not a particular build condition is true. >
When you add "-Ox" flag to the end of current C*FLAGS the last option is effective. It is true for GCC but I think other compilers have same behavior. Adam -- Adam Tkac, Red Hat, Inc. ------------------------------------------------------------------------------ _______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel