aboutsummaryrefslogtreecommitdiff
path: root/package/unixodbc/unixodbc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/unixodbc/unixodbc.mk')
-rw-r--r--package/unixodbc/unixodbc.mk15
1 files changed, 14 insertions, 1 deletions
diff --git a/package/unixodbc/unixodbc.mk b/package/unixodbc/unixodbc.mk
index 2c936fe9d5..cdc4e69a7e 100644
--- a/package/unixodbc/unixodbc.mk
+++ b/package/unixodbc/unixodbc.mk
@@ -4,7 +4,7 @@
#
################################################################################
-UNIXODBC_VERSION = 2.3.7
+UNIXODBC_VERSION = 2.3.9
UNIXODBC_SOURCE = unixODBC-$(UNIXODBC_VERSION).tar.gz
UNIXODBC_SITE = ftp://ftp.unixodbc.org/pub/unixODBC
UNIXODBC_INSTALL_STAGING = YES
@@ -13,6 +13,13 @@ UNIXODBC_LICENSE_FILES = COPYING exe/COPYING
UNIXODBC_CONF_OPTS = --enable-drivers --enable-driver-conf
+ifeq ($(BR2_PACKAGE_LIBEDIT),y)
+UNIXODBC_CONF_OPTS += --enable-editline
+UNIXODBC_DEPENDENCIES += libedit
+else
+UNIXODBC_CONF_OPTS += --disable-editline
+endif
+
ifeq ($(BR2_PACKAGE_LIBICONV),y)
UNIXODBC_CONF_OPTS += --enable-iconv
UNIXODBC_DEPENDENCIES += libiconv
@@ -34,4 +41,10 @@ else
UNIXODBC_CONF_OPTS += --disable-readline
endif
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+UNIXODBC_CONF_OPTS += --enable-threads
+else
+UNIXODBC_CONF_OPTS += --disable-threads
+endif
+
$(eval $(autotools-package))