From 72fc19e07f3d31d21b2dd961270d4dfe2a4c4d53 Mon Sep 17 00:00:00 2001 From: markster Date: Sun, 27 Mar 2005 22:39:17 +0000 Subject: Fix cross compiling (bug #3868) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5278 f38db490-d61c-443f-a65b-d21fe96a405b --- utils/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') 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 -- cgit v1.2.3