[asterisk-commits] kpfleming: branch 1.4 r107408 - in /branches/1.4: ./ main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 11 09:08:00 CDT 2008
Author: kpfleming
Date: Tue Mar 11 09:07:59 2008
New Revision: 107408
URL: http://svn.digium.com/view/asterisk?view=rev&rev=107408
Log:
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
Modified:
branches/1.4/configure
branches/1.4/configure.ac
branches/1.4/main/Makefile
branches/1.4/makeopts.in
Modified: branches/1.4/configure.ac
URL: http://svn.digium.com/view/asterisk/branches/1.4/configure.ac?view=diff&rev=107408&r1=107407&r2=107408
==============================================================================
--- branches/1.4/configure.ac (original)
+++ branches/1.4/configure.ac Tue Mar 11 09:07:59 2008
@@ -353,6 +353,16 @@
AST_DECLARATION_AFTER_STATEMENT=
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 res_ninit)
AC_LINK_IFELSE(
Modified: branches/1.4/main/Makefile
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/Makefile?view=diff&rev=107408&r1=107407&r2=107408
==============================================================================
--- branches/1.4/main/Makefile (original)
+++ branches/1.4/main/Makefile Tue Mar 11 09:07:59 2008
@@ -123,7 +123,7 @@
channel.o: ASTCFLAGS+=$(ZAPTEL_INCLUDE)
-stdtime/localtime.o: ASTCFLAGS+=-fno-strict-overflow
+stdtime/localtime.o: ASTCFLAGS+=$(AST_NO_STRICT_OVERFLOW)
AST_EMBED_LDSCRIPTS:=$(sort $(EMBED_LDSCRIPTS))
AST_EMBED_LDFLAGS:=$(foreach dep,$(EMBED_LDFLAGS),$(value $(dep)))
Modified: branches/1.4/makeopts.in
URL: http://svn.digium.com/view/asterisk/branches/1.4/makeopts.in?view=diff&rev=107408&r1=107407&r2=107408
==============================================================================
--- branches/1.4/makeopts.in (original)
+++ branches/1.4/makeopts.in Tue Mar 11 09:07:59 2008
@@ -62,6 +62,7 @@
AST_DEVMODE=@AST_DEVMODE@
AST_DECLARATION_AFTER_STATEMENT=@AST_DECLARATION_AFTER_STATEMENT@
+AST_NO_STRICT_OVERFLOW=@AST_NO_STRICT_OVERFLOW@
ASOUND_INCLUDE=@ALSA_INCLUDE@
ASOUND_LIB=@ALSA_LIB@
More information about the asterisk-commits
mailing list