aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-11 14:07:59 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-11 14:07:59 +0000
commit9b89b7f2c0dcfa76f0cb6f17dd1d56dd299fa32e (patch)
tree83414913875933ae71f2c5ed03ff13d6d2f93c22 /main
parent173ee40cbcdf685d841dd9827199f9eba7364395 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@107408 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/Makefile b/main/Makefile
index 9a70e1f4f..44e5a891b 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -123,7 +123,7 @@ testexpr2: ast_expr2f.c ast_expr2.c ast_expr2.h
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)))