[asterisk-commits] kpfleming: trunk r107409 - in /trunk: ./ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 11 09:09:49 CDT 2008


Author: kpfleming
Date: Tue Mar 11 09:09:49 2008
New Revision: 107409

URL: http://svn.digium.com/view/asterisk?view=rev&rev=107409
Log:
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

........

Modified:
    trunk/   (props changed)
    trunk/configure
    trunk/configure.ac
    trunk/main/Makefile
    trunk/makeopts.in

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=107409&r1=107408&r2=107409
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Tue Mar 11 09:09:49 2008
@@ -478,6 +478,15 @@
 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(

Modified: trunk/main/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/main/Makefile?view=diff&rev=107409&r1=107408&r2=107409
==============================================================================
--- trunk/main/Makefile (original)
+++ trunk/main/Makefile Tue Mar 11 09:09:49 2008
@@ -132,7 +132,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: trunk/makeopts.in
URL: http://svn.digium.com/view/asterisk/trunk/makeopts.in?view=diff&rev=107409&r1=107408&r2=107409
==============================================================================
--- trunk/makeopts.in (original)
+++ trunk/makeopts.in Tue Mar 11 09:09:49 2008
@@ -64,6 +64,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