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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5x/configure.ac

    r7895 r7917  
    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 -O0"
    30   CXXFLAGS="$CXXFLAGS -g -O0"
     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])
     
    5862AC_C_INLINE
    5963if test "x$GCC" = "xyes" ; then
    60     CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -Wextra -Wredundant-decls -Wpointer-arith -Wformat-security -W -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winit-self -Wundef -Wnested-externs -Wmissing-format-attribute"
     64  CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -Wextra -Wredundant-decls -Wpointer-arith -Wformat-security -W -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winit-self -Wundef -Wnested-externs -Wmissing-format-attribute"
    6165fi
    6266
Note: See TracChangeset for help on using the changeset viewer.