summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-27 22:39:17 +0000
committerMark Spencer <markster@digium.com>2005-03-27 22:39:17 +0000
commita0a2592025a299cba579a3159a240ec11983333c (patch)
tree967c042d6622322a809a26724fb2af4e57684e66 /utils
parentb0b916c16c0e2bdd2e46b3b229e92260519a50fd (diff)
Fix cross compiling (bug #3868)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils')
-rwxr-xr-xutils/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/Makefile b/utils/Makefile
index a3f04d10f..2a7c583a3 100755
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -5,13 +5,13 @@ CFLAGS+=-DNO_AST_MM
OSARCH=$(shell uname -s)
ifeq ($(findstring BSD,${OSARCH}),BSD)
-CFLAGS+=-I/usr/local/include -L/usr/local/lib
+CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
endif
TARGET=stereorize
-TARGET+=$(shell if [ -f /usr/include/popt.h ]; then echo "smsq"; else if [ -f /usr/local/include/popt.h ]; then echo "smsq"; fi ; fi)
-TARGET+=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else if [ -f /usr/local/include/newt.h ]; then echo "astman"; fi ; fi)
+TARGET+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/popt.h ]; then echo "smsq"; else if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/popt.h ]; then echo "smsq"; fi ; fi)
+TARGET+=$(shell if [ -f $(CROSS_COMPILE_TARGET)/usr/include/newt.h ]; then echo "astman"; else if [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/newt.h ]; then echo "astman"; fi ; fi)
ifeq (${OSARCH},SunOS)
SOL=../strcompat.o
endif