Fix CDR builds when includes are in freetds directory off include
authorMark Spencer <markster@digium.com>
Mon, 24 Apr 2006 03:40:12 +0000 (03:40 +0000)
committerMark Spencer <markster@digium.com>
Mon, 24 Apr 2006 03:40:12 +0000 (03:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22232 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/Makefile

index 30284ce..575a019 100644 (file)
@@ -61,6 +61,11 @@ endif
 
 MLFLAGS=
 
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/freetds),)
+  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/include/freetds
+  MLFLAGS+=-L$(CROSS_COMPILE_TARGET)/usr/lib/postgresql
+endif
+
 ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/postgresql),)
   CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/include/postgresql
   MLFLAGS+=-L$(CROSS_COMPILE_TARGET)/usr/lib/postgresql