Merge pull request #5977 from Kurganov/le11-sqlite-icu

sqlite: enable ICU support
This commit is contained in:
Christian Hewitt 2022-01-01 16:07:01 +00:00 committed by GitHub
commit 0d1e2a6beb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,7 @@ PKG_LICENSE="PublicDomain"
PKG_SITE="https://www.sqlite.org/"
PKG_URL="https://www.sqlite.org/2021/${PKG_NAME}-autoconf-${PKG_VERSION_SQLITE/./0}.tar.gz"
PKG_DEPENDS_HOST="ccache:host autoconf:host automake:host"
PKG_DEPENDS_TARGET="toolchain ncurses"
PKG_DEPENDS_TARGET="toolchain ncurses icu"
PKG_LONGDESC="An Embeddable SQL Database Engine."
# libsqlite3.a(sqlite3.o): requires dynamic R_X86_64_PC32 reloc against 'sqlite3_stricmp' which may overflow at runtime
PKG_BUILD_FLAGS="+pic +pic:host -parallel"
@ -53,4 +53,8 @@ pre_configure_target() {
# sqlite3_config(SQLITE_CONFIG_MMAP_SIZE) call, or at run-time using the
# mmap_size pragma.
CFLAGS+=" -DSQLITE_TEMP_STORE=3 -DSQLITE_DEFAULT_MMAP_SIZE=268435456"
# Enable ICU support.
# This make case insensitive like statement for non ASCII characters.
CFLAGS+=" -DSQLITE_ENABLE_ICU -licuio -licui18n -licuuc -licudata"
}

View File

@ -12,8 +12,6 @@ PKG_DEPENDS_TARGET="toolchain icu:host"
PKG_LONGDESC="International Components for Unicode library."
PKG_TOOLCHAIN="configure"
PKG_BUILD_FLAGS="-sysroot"
configure_package() {
PKG_CONFIGURE_SCRIPT="${PKG_BUILD}/icu4c/source/configure"
PKG_CONFIGURE_OPTS_TARGET="--disable-layout \