[svn-commits] rizzo: trunk r89352 - /trunk/Makefile.moddir_rules

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Nov 16 20:50:53 CST 2007


Author: rizzo
Date: Fri Nov 16 20:50:52 2007
New Revision: 89352

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89352
Log:
compatibility fix for mingw32

Modified:
    trunk/Makefile.moddir_rules

Modified: trunk/Makefile.moddir_rules
URL: http://svn.digium.com/view/asterisk/trunk/Makefile.moddir_rules?view=diff&rev=89352&r1=89351&r2=89352
==============================================================================
--- trunk/Makefile.moddir_rules (original)
+++ trunk/Makefile.moddir_rules Fri Nov 16 20:50:52 2007
@@ -44,7 +44,10 @@
 	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
+endif
+
 $(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 svn-commits mailing list