mod_enum_la_SOURCES += $(UDNS_DIR)/udns_rr_srv.c $(UDNS_DIR)/udns_rr_naptr.c $(UDNS_DIR)/udns_codes.c $(UDNS_DIR)/udns_resolver.c
mod_enum_la_CFLAGS = $(AM_CFLAGS)
mod_enum_la_LIBADD = $(switch_builddir)/libfreeswitch.la
-mod_enum_la_LDFLAGS = -avoid-version -module -no-undefined
+mod_enum_la_LDFLAGS = -avoid-version -module -no-undefined -shared
mod_expr_la_SOURCES = mod_expr.c expreval.c exprinit.c exprobj.c exprutil.c exprfunc.c exprmem.c exprpars.c exprval.c
mod_expr_la_CFLAGS = $(AM_CFLAGS)
mod_expr_la_LIBADD = $(switch_builddir)/libfreeswitch.la
-mod_expr_la_LDFLAGS = -avoid-version -module -no-undefined -lm
+mod_expr_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm
mod_stress_la_SOURCES = mod_stress.cpp FFTReal.cpp
mod_stress_la_CFLAGS = $(AM_CFLAGS)
mod_stress_la_LIBADD = $(switch_builddir)/libfreeswitch.la
-mod_stress_la_LDFLAGS = -avoid-version -module -no-undefined
+mod_stress_la_LDFLAGS = -avoid-version -module -no-undefined -shared
mod_t38gateway_la_SOURCES = mod_t38gateway.c udptl.c
mod_t38gateway_la_CFLAGS = $(AM_CFLAGS)
mod_t38gateway_la_LIBADD = $(switch_builddir)/libfreeswitch.la
-mod_t38gateway_la_LDFLAGS = -avoid-version -module -no-undefined
+mod_t38gateway_la_LDFLAGS = -avoid-version -module -no-undefined -shared
mod_unimrcp_la_CFLAGS += -I$(UNIMRCP_DIR)/libs/apr-toolkit/include
mod_unimrcp_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(UNIMRCPLA) $(switch_builddir)/libs/apr/libapr-1.la
-mod_unimrcp_la_LDFLAGS = -avoid-version -module -no-undefined
+mod_unimrcp_la_LDFLAGS = -avoid-version -module -no-undefined -shared
if ISMAC
mod_unimrcp_la_LDFLAGS += -framework CoreFoundation -framework SystemConfiguration
mod_iax_la_SOURCES = mod_iax.c iax2-parser.c iax.c md5.c jitterbuf.c iax-mutex.c
mod_iax_la_CFLAGS = $(AM_CFLAGS) -I. -DNEWJB -DLIBIAX -DDEBUG_SUPPORT
mod_iax_la_LIBADD = $(switch_builddir)/libfreeswitch.la
-mod_iax_la_LDFLAGS = -avoid-version -module -no-undefined
+mod_iax_la_LDFLAGS = -avoid-version -module -no-undefined -shared
mod_skypiax_la_SOURCES = mod_skypiax.c skypiax_protocol.c
mod_skypiax_la_CFLAGS = $(AM_CFLAGS) -DSKYPIAX_SVN_VERSION=\"`cat $(switch_builddir)/.version`\"
mod_skypiax_la_LIBADD = $(switch_builddir)/libfreeswitch.la
-mod_skypiax_la_LDFLAGS = -avoid-version -module -no-undefined -lX11
+mod_skypiax_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lX11
mod_sofia_la_CFLAGS += -I$(SOFIAUA_DIR)/su -I$(SOFIAUA_BUILDDIR)/su
mod_sofia_la_CFLAGS += -I$(SOFIAUA_DIR)/url -I$(SOFIAUA_BUILDDIR)/url
mod_sofia_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(SOFIALA)
-mod_sofia_la_LDFLAGS = -avoid-version -module -no-undefined
+mod_sofia_la_LDFLAGS = -avoid-version -module -no-undefined -shared
if ADD_ODBC
mod_sofia_la_CFLAGS += -DSWITCH_HAVE_ODBC