aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--funcs/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/funcs/Makefile b/funcs/Makefile
index cb948a3bd..aa11c2059 100644
--- a/funcs/Makefile
+++ b/funcs/Makefile
@@ -25,7 +25,13 @@ BUILTINS=func_md5.o \
func_language.o \
func_moh.o
-STANDALONE_FUNCS=$(filter-out $(BUILTINS),$(patsubst %.c,%.o,$(wildcard func*.c)))
+AVAILABLE_FUNCS=$(filter-out $(BUILTINS),$(patsubst %.c,%.o,$(wildcard func*.c)))
+
+ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),)
+ STANDALONE_FUNCS=$(filter-out func_odbc.o,$(AVAILABLE_FUNCS))
+else
+ STANDALONE_FUNCS=$(AVAILABLE_FUNCS)
+endif
FUNCS+=$(STANDALONE_FUNCS:.o=.so)