mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +00:00
Merged revisions 107408 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r107408 | kpfleming | 2008-03-11 09:07:59 -0500 (Tue, 11 Mar 2008) | 5 lines check for compiler support for -fno-strict-overflow before using it (tested with Debian's gcc 4.3, 4.1 and 3.4) (closes issue #12179) Reported by: Netview ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107409 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -478,6 +478,15 @@ else
|
||||
fi
|
||||
AC_SUBST(AST_DECLARATION_AFTER_STATEMENT)
|
||||
|
||||
AC_MSG_CHECKING(for -fno-strict-overflow)
|
||||
if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||
AC_MSG_RESULT(yes)
|
||||
AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
AST_NO_STRICT_OVERFLOW=
|
||||
fi
|
||||
AC_SUBST(AST_NO_STRICT_OVERFLOW)
|
||||
|
||||
AC_MSG_CHECKING(for sysinfo)
|
||||
AC_LINK_IFELSE(
|
||||
|
||||
Reference in New Issue
Block a user