summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2013-08-05 14:27:54 -0700
committerChristopher Jones <sixd@php.net>2013-08-05 14:27:54 -0700
commitb90b551228c7dcc8399030c2cb0a12c72e9440f6 (patch)
tree385ec7e9824dfb89ccc1bffebca324011659a1a3 /acinclude.m4
parent963c1be38db3fd4b31303ae28e72933c5873103f (diff)
parentec4019e8f693fb68c8e282bb540812a10d99cba1 (diff)
downloadphp-git-b90b551228c7dcc8399030c2cb0a12c72e9440f6.tar.gz
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Add an empty make command for DTrace .d files to stop an implicit circular dependency in GNU Make which causes .d files to be overwritten (Bug 61268) Merge branch 'PHP-5.4' Conflicts: ext/mysqlnd/mysqlnd.c
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 07b1f8eb57..335b1b44d0 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2962,8 +2962,12 @@ dnl DTrace objects
esac
dnl Generate Makefile.objects entries
+dnl The empty $ac_provsrc command stops an implicit circular dependency
+dnl in GNU Make which causes the .d file to be overwritten (Bug 61268)
cat>>Makefile.objects<<EOF
+$abs_srcdir/$ac_provsrc:;
+
$ac_bdir[$]ac_hdrobj: $abs_srcdir/$ac_provsrc
CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir[$]ac_provsrc -o \$[]@ && cp \$[]@ \$[]@.bak && \$(SED) 's,PHP_,DTRACE_,g' \$[]@.bak > \$[]@