look in CROSS_COMPILE_TARGET for speex headers (issue #5118)
authorRussell Bryant <russell@russellbryant.com>
Mon, 5 Sep 2005 15:48:47 +0000 (15:48 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 5 Sep 2005 15:48:47 +0000 (15:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/Makefile

index 6e096e1..6022158 100755 (executable)
@@ -31,18 +31,18 @@ ifneq (${UI_SPEEX},)
 endif
 ifneq (${UIS_SPEEX},)
   MODSPEEX=codec_speex.so
 endif
 ifneq (${UIS_SPEEX},)
   MODSPEEX=codec_speex.so
-  CFLAGS+=-I/usr/include/speex
+  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/include/speex
   LIBSPEEX+=-lspeex -lm
 endif
 ifneq (${ULI_SPEEX},)
   MODSPEEX=codec_speex.so
   LIBSPEEX+=-lspeex -lm
 endif
 ifneq (${ULI_SPEEX},)
   MODSPEEX=codec_speex.so
-  CFLAGS+=-I/usr/local/include
+  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include
   LIBSPEEX=-L$(CROSS_COMPILE_TARGET)/usr/local/lib
   LIBSPEEX+=-lspeex -lm
 endif
 ifneq (${ULIS_SPEEX},)
   MODSPEEX=codec_speex.so
   LIBSPEEX=-L$(CROSS_COMPILE_TARGET)/usr/local/lib
   LIBSPEEX+=-lspeex -lm
 endif
 ifneq (${ULIS_SPEEX},)
   MODSPEEX=codec_speex.so
-  CFLAGS+=-I/usr/local/include/speex
+  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include/speex
   LIBSPEEX=-L$(CROSS_COMPILE_TARGET)/usr/local/lib
   LIBSPEEX+=-lspeex -lm
 endif
   LIBSPEEX=-L$(CROSS_COMPILE_TARGET)/usr/local/lib
   LIBSPEEX+=-lspeex -lm
 endif