Changeset 170 for trunk/aclocal.m4


Ignore:
Timestamp:
Apr 30, 2008, 11:56:45 PM (14 years ago)
Author:
katerina
Message:

Plenty of compiler warnings fixed, SQL query length fixed, doc update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r169 r170  
    11251125  AC_LANG_ASSERT(C)
    11261126  if test "X$CC" != "X"; then
    1127     AC_CACHE_CHECK([whether ${CC} accepts -fstack-protector],
     1127    AC_CACHE_CHECK([whether ${CC} accepts -fstack-protector-all],
    11281128      ssp_cv_cc,
    11291129      [ssp_old_cflags="$CFLAGS"
     
    11361136        ssp_cv_cc,
    11371137        [ssp_old_cflags="$CFLAGS"
    1138          CFLAGS="$CFLAGS -fstack-protector-all"
     1138         CFLAGS="$CFLAGS -fstack-protector"
    11391139         AC_TRY_COMPILE(,, ssp_cv_cc=yes, ssp_cv_cc=no)
    11401140         CFLAGS="$ssp_old_cflags"
    11411141        ])
    11421142      if test $ssp_cv_cc = yes; then
    1143         CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1 -fstack-protector-all"
     1143        CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector"
    11441144        AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
    11451145      fi
    11461146    else
    11471147      if test $ssp_cv_cc = yes; then
    1148         CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1 -fstack-protector"
     1148        CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
    11491149        AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
    11501150      fi
Note: See TracChangeset for help on using the changeset viewer.