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
This commit is contained in:
Luigi Rizzo
2007-11-20 16:12:10 +00:00
parent f5e5a443cf
commit 6938f4b2b0
5 changed files with 22 additions and 2 deletions

View File

@@ -66,9 +66,8 @@ _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+=-L../main -lasterisk -L../res $($@_LIBS)
# additional libraries in res/
LIBS_RES:= -lres_monitor -lres_adsi -lres_features
endif
endif