]> granicus.if.org Git - php/commitdiff
Fixed bug #75940 Unnecessary compile wrapper with PHP_THREAD_SAFETY=yes
authorJaromír Doleček <jdolecek@NetBSD.org>
Fri, 9 Feb 2018 13:30:06 +0000 (14:30 +0100)
committerAnatol Belski <ab@php.net>
Fri, 9 Feb 2018 13:30:06 +0000 (14:30 +0100)
configure.ac

index 7c0d0072546fb900cf77f071874b69b15b310a1a..25b573f8a667256b4b90db6034fd37b68479a447 100644 (file)
@@ -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