aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch/disable-Werror.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-08 15:37:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-08 16:00:33 +0000
commita0ac6f5b19483a576069f945ad034ed84e73a03b (patch)
treea133452cc9a0c7c1200edeb7099efeb3382a91c1 /main/freeswitch/disable-Werror.patch
parenta113922567d10238411f1a8451cfdc738ee8725d (diff)
downloadaports-a0ac6f5b19483a576069f945ad034ed84e73a03b.tar.bz2
aports-a0ac6f5b19483a576069f945ad034ed84e73a03b.tar.xz
main/freeswitch: build fix. disable -Werror
Diffstat (limited to 'main/freeswitch/disable-Werror.patch')
-rw-r--r--main/freeswitch/disable-Werror.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/freeswitch/disable-Werror.patch b/main/freeswitch/disable-Werror.patch
new file mode 100644
index 0000000000..9b823d7785
--- /dev/null
+++ b/main/freeswitch/disable-Werror.patch
@@ -0,0 +1,18 @@
+diff --git a/configure.ac b/configure.ac
+index 3eb0a47..2670bbd 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -414,13 +414,11 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
+ elif test "x${ax_cv_c_compiler_vendor}" = "xclang" ; then
+ APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC -ffast-math)
+ APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC -ffast-math)
+- APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
+ elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
+ APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC -ffast-math)
+ APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC -ffast-math)
+ AC_SUBST([AM_MOD_AVMD_CXXFLAGS], [-std=gnu99]) # FS-8809, needed for MAP_POPULATE
+ if test "$ac_cv_gcc_supports_w_no_unused_result" = yes; then
+- APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
+ APR_ADDTO(SWITCH_AM_CFLAGS, -Wno-unused-result)
+ fi
+ if test "$ac_cv_gcc_supports_w_no_misleading_indentation" = yes; then