diff --git a/src/mod/endpoints/mod_portaudio/Makefile.am b/src/mod/endpoints/mod_portaudio/Makefile.am index e0182163fe..7ef223bdb9 100644 --- a/src/mod/endpoints/mod_portaudio/Makefile.am +++ b/src/mod/endpoints/mod_portaudio/Makefile.am @@ -9,7 +9,7 @@ mod_portaudio_la_SOURCES = mod_portaudio.c pablio.c pa_ringbuffer.c mod_portaudio_la_CFLAGS = $(AM_CFLAGS) mod_portaudio_la_CFLAGS += -I. -I$(PA_DIR)/include -D__EXTENSION__=1 mod_portaudio_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(PALA) -mod_portaudio_la_LDFLAGS = -avoid-version -module -no-undefined +mod_portaudio_la_LDFLAGS = -avoid-version -module -no-undefined -shared if ISMAC mod_portaudio_la_LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon diff --git a/src/mod/formats/mod_portaudio_stream/Makefile.am b/src/mod/formats/mod_portaudio_stream/Makefile.am index bfd9662a3e..a93248a727 100644 --- a/src/mod/formats/mod_portaudio_stream/Makefile.am +++ b/src/mod/formats/mod_portaudio_stream/Makefile.am @@ -10,7 +10,7 @@ mod_portaudio_stream_la_SOURCES = mod_portaudio_stream.c $(MODPA_DIR)/pablio.c $ mod_portaudio_stream_la_CFLAGS = $(AM_CFLAGS) mod_portaudio_stream_la_CFLAGS += -I. -I$(PA_DIR)/include -D__EXTENSION__=1 -I$(MODPA_DIR) mod_portaudio_stream_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(PALA) -mod_portaudio_stream_la_LDFLAGS = -avoid-version -module -no-undefined +mod_portaudio_stream_la_LDFLAGS = -avoid-version -module -no-undefined -shared if ISMAC mod_portaudio_stream_la_LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon