summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2009-06-26 21:54:35 +0000
committerjdolecek <jdolecek@pkgsrc.org>2009-06-26 21:54:35 +0000
commitf8261a4faab9c8ba65dd160fa6644d0f55f88d98 (patch)
tree959970236f772967573f99f774481ce18c0caebc /lang/php5
parente08e5d209327a227aefd1167e6ce9f480d4171f2 (diff)
downloadpkgsrc-f8261a4faab9c8ba65dd160fa6644d0f55f88d98.tar.gz
resurrect patch originally from databases/php-pdo/patches/patch-aa, so
that databases/php-pdo compiles and works as shared module on Mac OS X after the package has been modified to use modules shipped with PHP instead of (obsolete) PCRE versions
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/patches/patch-as25
1 files changed, 25 insertions, 0 deletions
diff --git a/lang/php5/patches/patch-as b/lang/php5/patches/patch-as
new file mode 100644
index 00000000000..f7d43c49b16
--- /dev/null
+++ b/lang/php5/patches/patch-as
@@ -0,0 +1,25 @@
+$NetBSD: patch-as,v 1.6 2009/06/26 21:54:35 jdolecek Exp $
+
+--- ext/pdo/config.m4.orig 2009-06-26 23:43:44.000000000 +0200
++++ ext/pdo/config.m4
+@@ -34,20 +34,6 @@ if test "$PHP_PDO" != "no"; then
+
+ PHP_PDO_PEAR_CHECK
+
+- if test "$ext_shared" = "yes" ; then
+- case $host_alias in
+- *darwin*)
+- AC_MSG_ERROR([
+-Due to the way that loadable modules work on OSX/Darwin, you need to
+-compile the PDO package statically into the PHP core.
+-
+-Please follow the instructions at: http://netevil.org/node.php?nid=202
+-for more detail on this issue.
+- ])
+- ext_shared=no
+- ;;
+- esac
+- fi
+ PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
+ ifdef([PHP_ADD_EXTENSION_DEP],
+ [