From: Luigi Rizzo Date: Sat, 17 Nov 2007 11:10:16 +0000 (+0000) Subject: and this is the last one to have asterisk compile (not run yet) X-Git-Tag: 1.6.0-beta1~3^2~807 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb4d88cc9949257c319cf2739d6ae3a9bee377c2;p=thirdparty%2Fasterisk.git and this is the last one to have asterisk compile (not run yet) natively under cygwin. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89375 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules index be44ddc67d..acc2228949 100644 --- a/Makefile.moddir_rules +++ b/Makefile.moddir_rules @@ -43,11 +43,12 @@ include $(ASTTOPDIR)/Makefile.rules $(addsuffix .oo,$(CC_MODS)) $(addsuffix .o,$(C_MODS)): \ ASTCFLAGS+= -DAST_MODULE=\"$*\" $(MENUSELECT_OPTS_$*:%=-D%) $(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_INCLUDE)) -# For loadable modules, pass _LIB and _LDFLAGS from menuselect. -ifneq ($(OSARCH),mingw32) # -fPIC is default on mingw32 and cygwin -$(LOADABLE_MODS:%=%.so): ASTCFLAGS+=-fPIC +ifeq ($(findstring $(OSARCH), mingw32 cygwin ),) + # don't define -fPIC on mingw32 and cygwin, it is the default + $(LOADABLE_MODS:%=%.so): ASTCFLAGS+=-fPIC endif +# For loadable modules, pass _LIB and _LDFLAGS from menuselect. $(LOADABLE_MODS:%=%.so): LIBS+=$(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_LIB)) $(LOADABLE_MODS:%=%.so): ASTLDFLAGS+=$(foreach dep,$(MENUSELECT_DEPENDS_$*),$(value $(dep)_LDFLAGS))