summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-11-20 16:12:10 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-11-20 16:12:10 +0000
commit6938f4b2b002accd9c86e5cc63cfe31d0fe10e47 (patch)
tree9fed703dfecda0baea12e9016df436a1113463ca /res
parentf5e5a443cf035f2bb8334ac6c0c3d01fb19d0f2c (diff)
Fix building of modules under cygwin.
After this commit we can actually load modules under windows, and we can start debugging more interesting problems related to the load order and functionality of modules. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/Makefile b/res/Makefile
index 0d0863d51..4912a1dc9 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -25,6 +25,13 @@ all: _all
include $(ASTTOPDIR)/Makefile.moddir_rules
+ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
+ # order-only dependency: build res_monitor before res_features
+ res_features.so: | res_monitor.so
+ # res_features uses some functions from res_monitor
+ res_features.so_LIBS:= -lres_monitor.so
+endif
+
ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
ael/ael_lex.o: ASTCFLAGS+=-I. -Iael