diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-27 22:39:17 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-27 22:39:17 +0000 |
commit | 72fc19e07f3d31d21b2dd961270d4dfe2a4c4d53 (patch) | |
tree | 967c042d6622322a809a26724fb2af4e57684e66 /res | |
parent | 60f2c50380a4a7cc8acc9267026c1eb9b1d85799 (diff) |
Fix cross compiling (bug #3868)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5278 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-x | res/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/res/Makefile b/res/Makefile index a09eae179..df06973c1 100755 --- a/res/Makefile +++ b/res/Makefile @@ -13,20 +13,20 @@ MODS=res_adsi.so res_features.so res_crypto.so res_musiconhold.so res_indications.so res_monitor.so \ res_agi.so -MODS+=$(shell if [ -f "/usr/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi) -MODS+=$(shell if [ -f "/usr/local/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi) -MODS+=$(shell if [ -f "/usr/include/osp/osp.h" ]; then echo "res_osp.so"; fi) +MODS+=$(shell if [ -f "$(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi) +MODS+=$(shell if [ -f "$(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi) +MODS+=$(shell if [ -f "$(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h" ]; then echo "res_osp.so"; fi) CRYPTO_LIBS=-lssl -lcrypto CFLAGS+= -CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo " -DZAPATA_MOH") -CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo " -DZAPATA_MOH") +CFLAGS+=$(shell [ -f $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h ] && echo " -DZAPATA_MOH") +CFLAGS+=$(shell [ -f $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h ] && echo " -DZAPATA_MOH") # # Work around buggy RedHat 9.0 # CFLAGS+=-DOPENSSL_NO_KRB5 -fPIC -OSPLIB=/usr/lib/libosp.a +OSPLIB=$(CROSS_COMPILE_TARGET)/usr/lib/libosp.a all: depend $(MODS) |