signalwire-client-c: bump to 2.0.0
[feed/telephony.git] / net / freeswitch / patches / 500-libshout-deprecated.patch
1 Prevent compile from failing due to mod-shout using deprecated libshout
2 declarations.
3
4 ---
5
6 --- a/configure.ac
7 +++ b/configure.ac
8 @@ -373,8 +373,20 @@ if test "$ax_cv_c_compiler_vendor" = "gn
9 [ac_cv_gcc_supports_w_no_err_format_truncation=no])])
10 CFLAGS="$saved_CFLAGS"
11 AC_MSG_RESULT($ac_cv_gcc_supports_w_no_err_format_truncation)
12 +
13 + saved_CFLAGS="$CFLAGS"
14 + AC_CACHE_CHECK([whether compiler supports -Wno-error=deprecated-declarations],
15 + [ac_cv_gcc_supports_w_no_err_deprecated_declarations], [
16 + CFLAGS="$CFLAGS -Wno-error=deprecated-declarations"
17 + AC_TRY_COMPILE([],[return 0;],
18 + [ac_cv_gcc_supports_w_no_err_deprecated_declarations=yes],
19 + [ac_cv_gcc_supports_w_no_err_deprecated_declarations=no])])
20 + CFLAGS="$saved_CFLAGS"
21 + AC_MSG_RESULT($ac_cv_gcc_supports_w_no_err_deprecated_declarations)
22 fi
23
24 +AM_CONDITIONAL([W_NO_ERR_DEPRECATED_DECLARATIONS], [test x$ac_cv_gcc_supports_w_no_err_deprecated_declarations = xyes])
25 +
26 # tweak compiler specific flags
27 if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
28 APR_ADDTO(SWITCH_AM_CFLAGS, -KPIC)
29 --- a/src/mod/formats/mod_shout/Makefile.am
30 +++ b/src/mod/formats/mod_shout/Makefile.am
31 @@ -12,6 +12,10 @@ mod_shout_la_CPPFLAGS = $(CURL_CFLAGS) $
32 mod_shout_la_LIBADD = $(switch_builddir)/libfreeswitch.la
33 mod_shout_la_LDFLAGS = $(CURL_LIBS) -avoid-version -module -no-undefined -shared $(SHOUT_LIBS) $(MP3LAME_LIBS) $(MPG123_LIBS)
34
35 +if W_NO_ERR_DEPRECATED_DECLARATIONS
36 +mod_shout_la_CFLAGS += -Wno-error=deprecated-declarations
37 +endif
38 +
39 else
40 install: error
41 all: error