Default CFLAGS clobbering

Michael Nottebrock michaelnottebrock at
Sat May 22 14:23:33 BST 2004

On Saturday 22 May 2004 14:56, Simon Hausmann wrote:
> I think for all the users out there compiling KDE on their own the -O2
> makes simply sense.
> Instead of sed'ing configure I find it much simpler to simply set
> CFLAGS/CXXFLAGS as environment variables. The options kde adds get
> prepended, so your -Owhateveryouwant easily overrides the -O2 kde uses by
> default, with gcc.

I was under the wrong impression the highest specified optimization wins - 
perhaps I remember an old gcc bug?

It's still ugly to clobber the default case with optional flags, though.

   ,_,   | Michael Nottebrock               | lofi at
 (/^ ^\) | FreeBSD - The Power to Serve     |
   \u/   | K Desktop Environment on FreeBSD |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
URL: <>

More information about the kde-core-devel mailing list