Changeset 153 for trunk/aclocal.m4
- Timestamp:
- Jan 11, 2008, 11:47:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r144 r153 1121 1121 ssp_cv_cc, 1122 1122 [ssp_old_cflags="$CFLAGS" 1123 CFLAGS="$CFLAGS -fstack-protector "1123 CFLAGS="$CFLAGS -fstack-protector-all" 1124 1124 AC_TRY_COMPILE(,, ssp_cv_cc=yes, ssp_cv_cc=no) 1125 1125 CFLAGS="$ssp_old_cflags" 1126 1126 ]) 1127 if test $ssp_cv_cc = yes; then 1128 CFLAGS="$CFLAGS -fstack-protector" 1129 AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) 1127 if test $ssp_cv_cc = no; then 1128 AC_CACHE_CHECK([whether ${CC} accepts -fstack-protector], 1129 ssp_cv_cc, 1130 [ssp_old_cflags="$CFLAGS" 1131 CFLAGS="$CFLAGS -fstack-protector-all" 1132 AC_TRY_COMPILE(,, ssp_cv_cc=yes, ssp_cv_cc=no) 1133 CFLAGS="$ssp_old_cflags" 1134 ]) 1135 if test $ssp_cv_cc = yes; then 1136 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1 -fstack-protector-all" 1137 AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) 1138 fi 1139 else 1140 if test $ssp_cv_cc = yes; then 1141 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1 -fstack-protector" 1142 AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.]) 1143 fi 1130 1144 fi 1131 1145 fi … … 1704 1718 AC_MSG_CHECKING([whether pthreads work with $flag]) 1705 1719 PTHREAD_CFLAGS="$flag" 1706 PTHREAD_LDFLAGS="$flag"1707 1720 ;; 1708 1721 … … 1730 1743 LIBS="$PTHREAD_LIBS $LIBS" 1731 1744 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 1732 LDFLAGS="$LDFLAGS $PTHREAD_ LDFLAGS"1745 LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS" 1733 1746 1734 1747 # Check for various functions. We must include pthread.h, … … 1758 1771 PTHREAD_LIBS="" 1759 1772 PTHREAD_CFLAGS="" 1760 PTHREAD_LDFLAGS=""1761 1773 done 1762 1774 fi
Note:
See TracChangeset
for help on using the changeset viewer.