Skip to content

Commit

Permalink
Patch for use with openwrt sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
IchthysMaranatha authored Apr 28, 2022
1 parent 34994c3 commit 907760d
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion patches/100-openwrtIconvMysql.patch
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@

--- a/configure.ac
+++ b/configure.ac
@@ -83,8 +83,9 @@

dnl Checks for libraries.
dnl AC_CHECK_LIB([pthread], [pthread_create]) # should use ast_pthread_join everywhere?
-AC_SEARCH_LIBS([iconv], [c iconv],,AC_MSG_ERROR([iconv library missing]))
-AC_CHECK_LIB([sqlite3], [sqlite3_open],,AC_MSG_ERROR([sqlite3 library missing]))
+dnl AC_SEARCH_LIBS([iconv], [c iconv],,AC_MSG_ERROR([iconv library missing]))
+AC_CHECK_LIB([iconv], [libiconv])
+

dnl Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h termios.h])
@@ -109,8 +110,8 @@
)

AC_HEADER_FIND([asterisk.h], $with_asterisk)
-AC_HEADER_FIND([iconv.h], $with_iconv)
-AC_CHECK_HEADER([sqlite3.h],,AC_MSG_ERROR([sqlite3.h header file missing]))
+dnl AC_HEADER_FIND([iconv.h], $with_iconv)
+dnl AC_CHECK_HEADER([sqlite3.h],,AC_MSG_ERROR([sqlite3.h header file missing]))

AC_DEFINE([ICONV_CONST],[], [Define to const if you has iconv() const declaration of input buffer])
AC_MSG_CHECKING([for iconv use const inbuf])
@@ -224,8 +225,6 @@
if test "x$enable_debug" = "xyes" ; then
CFLAGS="$CFLAGS -O0 -g"
AC_DEFINE([__DEBUG__], [1], [Build with debugging])
-else
- CFLAGS="$CFLAGS -O6"
fi

dnl Asterisk header files use lots of old style declarations, ignore those.

0 comments on commit 907760d

Please sign in to comment.