[asterisk-commits] rizzo: trunk r89375 - /trunk/Makefile.moddir_rules

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Nov 17 05:10:16 CST 2007


Author: rizzo
Date: Sat Nov 17 05:10:16 2007
New Revision: 89375

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89375
Log:
and this is the last one to have asterisk compile (not run yet)
natively under cygwin.


Modified:
    trunk/Makefile.moddir_rules

Modified: trunk/Makefile.moddir_rules
URL: http://svn.digium.com/view/asterisk/trunk/Makefile.moddir_rules?view=diff&rev=89375&r1=89374&r2=89375
==============================================================================
--- trunk/Makefile.moddir_rules (original)
+++ trunk/Makefile.moddir_rules Sat Nov 17 05:10:16 2007
@@ -43,11 +43,12 @@
 $(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))
 




More information about the asterisk-commits mailing list