Merged revisions 89536 via svnmerge from
[asterisk/asterisk.git] / Makefile.moddir_rules
index 17924be..988f484 100644 (file)
@@ -63,6 +63,12 @@ modules.link: $(addsuffix .eo,$(filter $(EMBEDDED_MODS),$(C_MODS)))
 
 ifneq ($(LOADABLE_MODS),)
 _all: $(LOADABLE_MODS:%=%.so)
+ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
+  # linker options and extra libraries for cygwin
+  SOLINK=-Wl,--out-implib=lib$@.a -shared
+  LIBS+=-L../main -lasterisk -L../res $($@_LIBS)
+  # additional libraries in res/
+endif
 endif
 
 ifneq ($(EMBEDDED_MODS),)