[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kde-common/admin
From:       Stephan Kulow <coolo () kde ! org>
Date:       2006-01-31 21:20:35
Message-ID: 1138742435.762018.28076.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 504359 by coolo:

gcc 2.95 has no such option - figured Leo


 M  +3 -2      acinclude.m4.in  


--- branches/KDE/3.5/kde-common/admin/acinclude.m4.in #504358:504359
@@ -3095,11 +3095,12 @@
   AC_PROG_CPP
 
   if test "$GCC" = "yes"; then
+    KDE_CHECK_COMPILER_FLAG(fno-reorder-blocks,[gcc_noreorderblocks=" -fno-reorder-blocks"])
     if test "$kde_use_debug_code" != "no"; then
       if test $kde_use_debug_code = "full"; then
         CFLAGS="-g3 -fno-inline $CFLAGS"
       else
-        CFLAGS="-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline $CFLAGS"
+        CFLAGS="-g -O2$gcc_noreorderblocks -fno-schedule-insns -fno-inline $CFLAGS"
       fi
     else
       CFLAGS="-O2 $CFLAGS"
@@ -3134,7 +3135,7 @@
         if test "$kde_use_debug_code" = "full"; then
           CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
         else
-          CXXFLAGS="-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline $CXXFLAGS"
+          CXXFLAGS="-g -O2$gcc_noreorderblocks -fno-schedule-insns -fno-inline $CXXFLAGS"
         fi
       fi
       KDE_CHECK_COMPILER_FLAG(fno-builtin,[CXXFLAGS="-fno-builtin $CXXFLAGS"])
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic