php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #74711
Patch patch-ext_odbc_config_m4.diff revision 2017-07-05 09:48 UTC by martijn at openbsd dot org

Patch patch-ext_odbc_config_m4.diff for Dynamic loading Bug #74711

Patch version 2017-07-05 09:48 UTC

Return to Bug #74711 | Download this patch
Patch Revisions:

Developer: martijn@openbsd.org

$OpenBSD$
--- ext/odbc/config.m4.orig.port	Mon Jun 26 22:55:51 2017
+++ ext/odbc/config.m4	Mon Jun 26 22:56:21 2017
@@ -396,7 +396,7 @@ PHP_ARG_WITH(iodbc,,
       AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
     fi 
     if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then
-      PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR)
+      PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR, IODBC_SHARED_LIBADD)
       ODBC_TYPE=iodbc
       ODBC_INCLUDE=`$PKG_CONFIG --cflags-only-I libiodbc`
       ODBC_LFLAGS=`$PKG_CONFIG --libs-only-L libiodbc`
@@ -409,7 +409,7 @@ PHP_ARG_WITH(iodbc,,
       if test "$PHP_IODBC" = "yes"; then
         PHP_IODBC=/usr/local
       fi
-      PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR)
+      PHP_ADD_LIBRARY_WITH_PATH(iodbc, $PHP_IODBC/$PHP_LIBDIR, IODBC_SHARED_LIBADD)
       PHP_ADD_INCLUDE($PHP_IODBC/include, 1)
       ODBC_TYPE=iodbc
       ODBC_INCLUDE=-I$PHP_IODBC/include
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Nov 12 11:01:31 2019 UTC