mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user