aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-26 02:08:06 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-26 02:08:06 +0000
commit5655950ecf3175aabfba724be28f88e9d26387a9 (patch)
tree62d6c8108aaf349bb247edd9c4bf4b9cae52c594 /Makefile
parentcbc14aac77ac15a3097c62afaa8f68ea874d4f1c (diff)
fix minor build problem on *BSD (issue #5290)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6658 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 914f388c5..b83a7039c 100755
--- a/Makefile
+++ b/Makefile
@@ -201,11 +201,6 @@ ifeq (${OSARCH},Linux)
MPG123TARG=linux
endif
-ifeq ($(findstring BSD,${OSARCH}),BSD)
- PROC=$(shell uname -m)
- ASTCFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
-endif
-
PWD=$(shell pwd)
GREP=grep
@@ -218,6 +213,11 @@ INCLUDE=-Iinclude -I../include
ASTCFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
ASTCFLAGS+=$(OPTIMIZE)
+ifeq ($(findstring BSD,${OSARCH}),BSD)
+ PROC=$(shell uname -m)
+ ASTCFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
+endif
+
ifneq ($(PROC),ultrasparc)
ASTCFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
endif