-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed autoconf macro ac-nta-net-size-t to ike-net-size-t
Modified autoconf macro gcc-stack-protect to link instead of compile
- Loading branch information
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
dnl | ||
dnl Useful macros for autoconf to check for ssp-patched gcc | ||
dnl 1.0 - September 2003 - Tiago Sousa <[email protected]> | ||
dnl | ||
dnl Modified by ffontaine pull request: use AC_LINK_IFELSE instead of | ||
dnl AC_COMPILE_IFELSE because some systems may be missing the libssp library | ||
dnl even though the compiler accepts the option. | ||
dnl | ||
dnl About ssp: | ||
dnl GCC extension for protecting applications from stack-smashing attacks | ||
dnl http://www.research.ibm.com/trl/projects/security/ssp/ | ||
|
@@ -23,7 +26,7 @@ AC_DEFUN([GCC_STACK_PROTECT_CC],[ | |
AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector]) | ||
ssp_old_cflags="$CFLAGS" | ||
CFLAGS="$CFLAGS -fstack-protector" | ||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[ssp_cc=no]) | ||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[ssp_cc=no]) | ||
echo $ssp_cc | ||
if test "X$ssp_cc" = "Xno"; then | ||
CFLAGS="$ssp_old_cflags" | ||
|
@@ -39,7 +42,7 @@ AC_DEFUN([GCC_STACK_PROTECT_CXX],[ | |
AC_MSG_CHECKING([whether ${CXX} accepts -fstack-protector]) | ||
ssp_old_cxxflags="$CXXFLAGS" | ||
CXXFLAGS="$CXXFLAGS -fstack-protector" | ||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[ssp_cxx=no]) | ||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[ssp_cxx=no]) | ||
echo $ssp_cxx | ||
if test "X$ssp_cxx" = "Xno"; then | ||
CXXFLAGS="$ssp_old_cxxflags" | ||
|
@@ -48,4 +51,3 @@ AC_DEFUN([GCC_STACK_PROTECT_CXX],[ | |
fi | ||
fi | ||
]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters