FreeSWITCH:
authorMazi Lo <openwrt.mazilo@recursor.net>
Sat, 11 Oct 2014 17:27:34 +0000 (13:27 -0400)
committerMazi Lo <openwrt.mazilo@recursor.net>
Sat, 11 Oct 2014 17:27:34 +0000 (13:27 -0400)
1. Remove -Werror from gnu platform

Signed-off-by: Mazi Lo <openwrt.mazilo@recursor.net>
net/freeswitch/patches/0000010-configure_ac.patch

index 5f93173375797e30a71509b110f43ac56c1b8a2a..67913bf435935920b46ad00fe9337a8c39d75d13 100644 (file)
@@ -9,7 +9,17 @@
                # spandsp modem
                ac_cv_file__dev_ptmx=yes
                # libjs
-@@ -839,7 +839,6 @@ AC_CHECK_LIB(pthread, pthread_setschedpa
+@@ -378,9 +378,6 @@ elif test "x${ax_cv_c_compiler_vendor}"
+ elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
+     APR_ADDTO(SWITCH_AM_CFLAGS, -fPIC)
+     APR_ADDTO(SWITCH_AM_CXXFLAGS, -fPIC)
+-    if test "$ac_cv_gcc_supports_w_no_unused_result" = yes; then
+-      APR_ADDTO(SWITCH_AM_CFLAGS, -Werror)
+-    fi
+     if test "${enable_64}" = "yes"; then
+       case "$host" in
+              *darwin12.*|*darwin11.*|*darwin10.*|*darwin9.*|*darwin8.*)
+@@ -839,7 +836,6 @@ AC_CHECK_LIB(pthread, pthread_setschedpa
  
  AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
  
@@ -17,7 +27,7 @@
  AC_CHECK_LIB(util, openpty, [AC_DEFINE(HAVE_OPENPTY, 1, [Define if you have openpty()])])
  
  AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[
-@@ -1163,14 +1162,14 @@ case $host in
+@@ -1163,14 +1159,14 @@ case $host in
         ;;
  esac
  
@@ -38,7 +48,7 @@
  
  module_enabled() {
    grep -v -e "\#" -e "^\$" modules.conf | sed -e "s|^.*/||" | grep "^${1}\$" >/dev/null
-@@ -1191,7 +1190,7 @@ PKG_CHECK_MODULES([LDNS], [libldns >= 1.
+@@ -1191,7 +1187,7 @@ PKG_CHECK_MODULES([LDNS], [libldns >= 1.
    AC_CHECK_LIB([ldns], [ldns_str2rdf_a], [LDNS_LIBS=-lldns])
    AS_IF([test -z "$LDNS_LIBS"],[
      if module_enabled mod_enum; then
@@ -47,7 +57,7 @@
      else
        AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_LDNS],[false])
      fi],[
-@@ -1269,21 +1268,21 @@ AM_CONDITIONAL([HAVE_MYSQL],[test "$foun
+@@ -1269,21 +1265,21 @@ AM_CONDITIONAL([HAVE_MYSQL],[test "$foun
  # perl checks
  #
  
@@ -80,7 +90,7 @@
     AC_CHECK_HEADER([EXTERN.h], [ac_cv_have_EXTERN_h=yes], [ac_cv_have_EXTERN_h=no], [[#include <EXTERN.h>
  # include <perl.h>]])
     CFLAGS="$save_CFLAGS"
-@@ -1291,14 +1290,17 @@ if test "x$ac_cv_have_perl" != "xno"; th
+@@ -1291,14 +1287,17 @@ if test "x$ac_cv_have_perl" != "xno"; th
     save_LDFLAGS="$LDFLAGS"
     LDFLAGS="$PERL_LDFLAGS"
     AC_CHECK_LIB([perl], [perl_alloc], ac_cv_use_libperl=yes, ac_cv_use_libperl=no)