Skip to content
Snippets Groups Projects
Commit 2f66f7cf authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

don't try to build func_odbc when ODBC headers/libraries are not present

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 1d498c35
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment