FreeSWITCH: fixed cross-compile errors
Signed-off-by: Bluemax <bluemax@users.noreply.github.com>
This commit is contained in:
parent
409394e6ea
commit
163874a260
2 changed files with 34 additions and 0 deletions
16
net/freeswitch/patches/libs-apr-configure_ac.patch
Executable file
16
net/freeswitch/patches/libs-apr-configure_ac.patch
Executable file
|
@ -0,0 +1,16 @@
|
|||
--- a/libs/apr/configure.ac
|
||||
+++ b/libs/apr/configure.ac
|
||||
@@ -1956,8 +1956,11 @@
|
||||
|
||||
APR_CHECK_TCP_NODELAY_INHERITED
|
||||
APR_CHECK_O_NONBLOCK_INHERITED
|
||||
-APR_CHECK_TCP_NODELAY_WITH_CORK
|
||||
-
|
||||
+dnl Check TCP_NODELAY_WITH_CORK ONLY when NOT cross compiling
|
||||
+if test "$cross_compiling" != yes; then
|
||||
+ APR_CHECK_TCP_NODELAY_WITH_CORK
|
||||
+fi
|
||||
+
|
||||
# Look for a way of corking TCP...
|
||||
APR_CHECK_DEFINE(TCP_CORK, netinet/tcp.h)
|
||||
APR_CHECK_DEFINE(TCP_NOPUSH, netinet/tcp.h)
|
18
net/freeswitch/patches/libs-apr-util-configure_ac.patch
Executable file
18
net/freeswitch/patches/libs-apr-util-configure_ac.patch
Executable file
|
@ -0,0 +1,18 @@
|
|||
--- a/libs/apr-util/configure.ac
|
||||
+++ b/libs/apr-util/configure.ac
|
||||
@@ -123,9 +123,12 @@ dnl Find an iconv library
|
||||
APU_FIND_LDAP
|
||||
APU_CHECK_DBM
|
||||
APU_CHECK_DBD
|
||||
-APU_CHECK_DBD_MYSQL
|
||||
-APU_CHECK_DBD_SQLITE3
|
||||
-APU_CHECK_DBD_SQLITE2
|
||||
+dnl Check databases ONLY when NOT cross compiling
|
||||
+if test "$cross_compiling" != yes; then
|
||||
+ APU_CHECK_DBD_MYSQL
|
||||
+ APU_CHECK_DBD_SQLITE3
|
||||
+ APU_CHECK_DBD_SQLITE2
|
||||
+fi
|
||||
APU_FIND_EXPAT
|
||||
APU_FIND_ICONV
|
||||
|
Loading…
Reference in a new issue