aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorpabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b>2010-12-02 20:01:08 +0000
committerpabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b>2010-12-02 20:01:08 +0000
commit7bfd49b0f5e37b2deb984187098d24cd923592da (patch)
tree77373c86756697b97865879efda5956b22eeb72e /Makefile
parentca3b6ffc2fb4b8cbf0699179971af8f425195e42 (diff)
Resolve compile error under FreeBSD
We now set _ASTCFLAGS+=-march=i686 for i386 processors, still allowing ASTCFLAGS to override the setting. Review: https://reviewboard.asterisk.org/r/1043/ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@297404 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 148ff43da..25e757e6a 100644
--- a/Makefile
+++ b/Makefile
@@ -235,6 +235,9 @@ ifeq ($(PROC),ppc)
endif
ifeq ($(OSARCH),FreeBSD)
+ ifeq ($(PROC),i386)
+ _ASTCFLAGS+=-march=i686
+ endif
# -V is understood by BSD Make, not by GNU make.
BSDVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
_ASTCFLAGS+=$(shell if test $(BSDVERSION) -lt 500016 ; then echo "-D_THREAD_SAFE"; fi)