summaryrefslogtreecommitdiff
path: root/Makefile.moddir_rules
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-11-17 11:10:16 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-11-17 11:10:16 +0000
commitfb4d88cc9949257c319cf2739d6ae3a9bee377c2 (patch)
tree2ca11bde9e595bad80da09369e0d62dc2149c2f6 /Makefile.moddir_rules
parent24c2e47e0dd2796a42deeeb4b907f255c4e9a124 (diff)
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
Diffstat (limited to 'Makefile.moddir_rules')
-rw-r--r--Makefile.moddir_rules7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules
index be44ddc67..acc222894 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))