php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #75940
Patch php-compile-drop-meta_ccld.diff revision 2018-02-08 21:48 UTC by jdolecek at NetBSD dot org

Patch php-compile-drop-meta_ccld.diff for *Compile Issues Bug #75940

Patch version 2018-02-08 21:48 UTC

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

Developer: jdolecek@NetBSD.org

diff --git a/configure.ac b/configure.ac
index 7c0d007254..25b573f8a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1377,12 +1377,7 @@ old_CC=$CC
 if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
   CXXFLAGS="$CXXFLAGS $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
+  CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags"
 fi
 
 dnl This will go away, if we have a facility to run per-extension code
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 11:01:34 2024 UTC