Changeset 7918


Ignore:
Timestamp:
Feb 19, 2009, 5:12:41 PM (13 years ago)
Author:
charles
Message:

(trunk) #1847: Non-GCC compilers are not happy with -O options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r7896 r7918  
    2222if test m4_substr(peer_id_prefix,6,1) = "0"; then
    2323  supported_build=yes
    24   CFLAGS="$CFLAGS -g -O3 -funroll-loops "
    25   CXXFLAGS="$CXXFLAGS -g -O3 -funroll-loops "
     24  if test "x$GCC" = "xyes" ; then
     25    CFLAGS="$CFLAGS -g -O3 -funroll-loops "
     26    CXXFLAGS="$CXXFLAGS -g -O3 -funroll-loops "
     27  fi
    2628  AC_DEFINE(TR_STABLE_RELEASE, 1, [Define to 1 if this is a stable release of Transmission])
    2729else
    2830  supported_build=no
    29   CFLAGS="$CFLAGS -g -O"
    30   CXXFLAGS="$CXXFLAGS -g -O"
     31  if test "x$GCC" = "xyes" ; then
     32    CFLAGS="$CFLAGS -g -O0"
     33    CXXFLAGS="$CXXFLAGS -g -O0"
     34  fi
    3135  if test m4_substr(peer_id_prefix,6,1) = "X"; then
    3236    AC_DEFINE(TR_BETA_RELEASE, 1, [Define to 1 if this is a beta release of Transmission])
     
    5963if test "x$GCC" = "xyes" ; then
    6064
    61     CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunreachable-code -Wunused-parameter -Wwrite-strings"
     65    CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings"
    6266
    6367    dnl figure out gcc version
Note: See TracChangeset for help on using the changeset viewer.