summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/php/Config.ext6
-rw-r--r--package/php/php.mk4
2 files changed, 10 insertions, 0 deletions
diff --git a/package/php/Config.ext b/package/php/Config.ext
index 1d9c2fe68f..fafae264dc 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -159,6 +159,12 @@ config BR2_PACKAGE_PHP_EXT_PDO_SQLITE
help
SQLite3 driver for PDO
+config BR2_PACKAGE_PHP_EXT_PDO_UNIXODBC
+ bool "unixODBC"
+ select BR2_PACKAGE_UNIXODBC
+ help
+ unixODBC driver for PDO
+
endif
comment "Human language and character encoding support"
diff --git a/package/php/php.mk b/package/php/php.mk
index 74bb00ac6a..73ed494faf 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -176,6 +176,10 @@ ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL),y)
PHP_CONF_OPTS += --with-pdo-pgsql=$(STAGING_DIR)/usr
PHP_DEPENDENCIES += postgresql
endif
+ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_UNIXODBC),y)
+PHP_CONF_OPTS += --with-pdo-odbc=unixODBC,$(STAGING_DIR)/usr
+PHP_DEPENDENCIES += unixodbc
+endif
endif
### Use external PCRE if it's available
OpenPOWER on IntegriCloud