pkgsrc/www/php4/patches/patch-ad
jlam 3a5599d7c8 When apache2 is built with the "worker" MPM, the PHP4 configure script
creates its own compiler wrapper script.  This "meta_ccld" script
isn't recognized by the installed libtool script as a compiler, and
libtool gets confused as to which compiler tag to use.  Rather than
inserting "--tag=CC" into the Makefiles, we patch the configure script
to not make the wrapper script, and instead, to simply append the
appropriate pthreads CFLAGS to the normal CFLAGS variable subsituted
into Makefiles.  This fixes PR pkg/28485.
2004-12-09 14:50:23 +00:00

19 lines
601 B
Text

$NetBSD: patch-ad,v 1.17 2004/12/09 14:50:23 jlam Exp $
--- configure.orig 2004-09-20 18:31:33.000000000 -0400
+++ configure
@@ -90314,13 +90314,8 @@ old_CC=$CC
if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
+ CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
- cat >meta_ccld<<EOF
-#! /bin/sh
-exec $CC $ac_cv_pthreads_cflags \$@
-EOF
- CC="$abs_builddir/meta_ccld"
- chmod +x meta_ccld
fi
if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then