Changeset 170 for trunk/aclocal.m4
- Timestamp:
- Apr 30, 2008, 11:56:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r169 r170 1125 1125 AC_LANG_ASSERT(C) 1126 1126 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], 1128 1128 ssp_cv_cc, 1129 1129 [ssp_old_cflags="$CFLAGS" … … 1136 1136 ssp_cv_cc, 1137 1137 [ssp_old_cflags="$CFLAGS" 1138 CFLAGS="$CFLAGS -fstack-protector -all"1138 CFLAGS="$CFLAGS -fstack-protector" 1139 1139 AC_TRY_COMPILE(,, ssp_cv_cc=yes, ssp_cv_cc=no) 1140 1140 CFLAGS="$ssp_old_cflags" 1141 1141 ]) 1142 1142 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" 1144 1144 AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) 1145 1145 fi 1146 1146 else 1147 1147 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" 1149 1149 AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) 1150 1150 fi
Note:
See TracChangeset
for help on using the changeset viewer.