diff mbox

[next,v2,3/4] package/php: add unixodbc support

Message ID 1425204461-27877-3-git-send-email-bernd.kuhls@t-online.de
State Superseded
Headers show

Commit Message

Bernd Kuhls March 1, 2015, 10:07 a.m. UTC
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: no changes

 package/php/Config.ext |    6 ++++++
 package/php/php.mk     |    4 ++++
 2 files changed, 10 insertions(+)
diff mbox

Patch

diff --git a/package/php/Config.ext b/package/php/Config.ext
index 2b1e615..466f3f1 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -160,6 +160,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 dd52508..054fdc7 100644
--- a/package/php/php.mk
+++ b/package/php/php.mk
@@ -174,6 +174,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