lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6537] Use -O2, not just -O, when cross-compiling using gc


From: Vadim Zeitlin
Subject: [lmi-commits] [6537] Use -O2, not just -O, when cross-compiling using gcc
Date: Sun, 27 Mar 2016 22:23:15 +0000

Revision: 6537
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6537
Author:   zeitlin
Date:     2016-03-27 22:23:15 +0000 (Sun, 27 Mar 2016)
Log Message:
-----------
Use -O2, not just -O, when cross-compiling using gcc

Recognize any compiler ending with gcc, such as i686-w64-mingw32-gcc
cross-compiler, as gcc, and use -O2 and not just -O for it to produce the same
code as makefile-based builds.

Modified Paths:
--------------
    lmi/trunk/configure.ac

Modified: lmi/trunk/configure.ac
===================================================================
--- lmi/trunk/configure.ac      2016-03-27 13:05:33 UTC (rev 6536)
+++ lmi/trunk/configure.ac      2016-03-27 22:23:15 UTC (rev 6537)
@@ -177,7 +177,7 @@
 if test "$optimize_option" = "yes"; then
     case "$CC" in
         cl)     OPT_FLAG="/O";;
-        gcc)    OPT_FLAG="-O2";;
+        *gcc)   OPT_FLAG="-O2";;
         *)      OPT_FLAG="-O";;
     esac
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]