summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Kemper2020-07-20 18:35:05 +0000
committerSebastian Kemper2020-07-20 18:46:24 +0000
commite0feb012ad7f1927aad96fd40842a6a3ef9ea54a (patch)
tree63310512f6ef971c2bf2de715cc02f3a1844566a
parent70b11b01921d00979bdfcad4ea95a9bd57b411e3 (diff)
downloadtelephony-e0feb012ad7f1927aad96fd40842a6a3ef9ea54a.tar.gz
freeswitch: mod-rayo not compiling with gcc-10
Raised issue upstream ([1]). For now let's add this workaround. [1] https://github.com/signalwire/freeswitch/issues/742 Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
-rw-r--r--net/freeswitch/patches/410-rayo-gcc10.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/freeswitch/patches/410-rayo-gcc10.patch b/net/freeswitch/patches/410-rayo-gcc10.patch
new file mode 100644
index 0000000..a9b9b98
--- /dev/null
+++ b/net/freeswitch/patches/410-rayo-gcc10.patch
@@ -0,0 +1,20 @@
+--- a/src/mod/event_handlers/mod_rayo/Makefile.am
++++ b/src/mod/event_handlers/mod_rayo/Makefile.am
+@@ -8,7 +8,7 @@ IKS_LA=$(IKS_BUILDDIR)/src/libiksemel.la
+ noinst_LTLIBRARIES = librayomod.la
+ librayomod_la_SOURCES = mod_rayo.c iks_helpers.c nlsml.c rayo_components.c rayo_cpa_component.c rayo_cpa_detector.c rayo_elements.c rayo_fax_components.c
+ librayomod_la_SOURCES += rayo_input_component.c rayo_output_component.c rayo_prompt_component.c rayo_record_component.c sasl.c srgs.c xmpp_streams.c rayo_exec_component.c
+-librayomod_la_CFLAGS = $(AM_CFLAGS) -I$(switch_builddir)/libs/iksemel/include $(PCRE_CFLAGS)
++librayomod_la_CFLAGS = $(AM_CFLAGS) -I$(switch_builddir)/libs/iksemel/include $(PCRE_CFLAGS) -fcommon
+
+ mod_LTLIBRARIES = mod_rayo.la
+ mod_rayo_la_SOURCES =
+@@ -25,7 +25,7 @@ $(IKS_LA): $(IKS_BUILDDIR) $(IKS_DIR) $(
+ noinst_PROGRAMS = test/test_iks test/test_nlsml test/test_srgs
+
+ test_test_iks_SOURCES = test/test_iks.c
+-test_test_iks_CFLAGS = $(AM_CFLAGS) -I. -I$(switch_builddir)/libs/iksemel/include $(PCRE_CFLAGS) -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\"
++test_test_iks_CFLAGS = $(AM_CFLAGS) -I. -I$(switch_builddir)/libs/iksemel/include $(PCRE_CFLAGS) -DSWITCH_TEST_BASE_DIR_FOR_CONF=\"${abs_builddir}/test\" -DSWITCH_TEST_BASE_DIR_OVERRIDE=\"${abs_builddir}/test\" -fcommon
+ test_test_iks_LDFLAGS = $(AM_LDFLAGS) -avoid-version -no-undefined $(freeswitch_LDFLAGS) $(switch_builddir)/libfreeswitch.la $(CORE_LIBS) $(APR_LIBS)
+ test_test_iks_LDADD = librayomod.la $(IKS_LA) $(PCRE_LIBS)
+