From 6c11deeffb1a5a75bbbc1a7071e329d4e343ee6c Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Tue, 4 Dec 2007 11:50:05 +0000
Subject: [PATCH] fix build on cygwin

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 res/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/res/Makefile b/res/Makefile
index 4912a1dc97..1a0f456863 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -26,10 +26,13 @@ all: _all
 include $(ASTTOPDIR)/Makefile.moddir_rules
 
 ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
-  # order-only dependency: build res_monitor before res_features
+  # cygwin has some dependencies among res_ things.
+  # We use order-only dependencies, and then add the libraries as required.
   res_features.so: | res_monitor.so
-  # res_features uses some functions from res_monitor
   res_features.so_LIBS:= -lres_monitor.so
+  #
+  res_agi.so: | res_speech.so
+  res_agi.so_LIBS:= -lres_speech.so
 endif
 
 ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
-- 
GitLab