# HG changeset patch # User diego # Date 1280614549 0 # Node ID 53145096892e103725ad10f4a484ec5eb1a7ae4d # Parent ee06f753ae93112a79b6c3dae9da80777eab82be Default to -O2 optimization level for the clang compiler. patch by Rowan James, rowanj phere net diff -r ee06f753ae93 -r 53145096892e configure --- a/configure Sat Jul 31 22:02:55 2010 +0000 +++ b/configure Sat Jul 31 22:15:49 2010 +0000 @@ -2553,6 +2553,8 @@ CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144" elif test "$cc_vendor" = "sun" ; then CFLAGS="-O2 $_march $_mcpu $_pipe -xc99 -xregs=frameptr" + elif test "$cc_vendor" = "clang"; then + CFLAGS="-O2 $_march $_pipe" elif test "$cc_vendor" != "gnu" ; then CFLAGS="-O2 $_march $_mcpu $_pipe" else