[3.6] bpo-28787: Fix out of tree --with-dtrace builds (GH-135) (#1543)
* bpo-28787: Fix out of tree --with-dtrace builds
* Unsilence directory creation
* Add Misc/NEWS and Misc/ACKS entries.
(cherry picked from commit f6eae5bf1c5d7b83e5d5bdbecfff928e478c1cfd)
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 076fb44..82e8307 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -875,6 +875,7 @@
# follow our naming conventions. dtrace(1) uses the output filename to generate
# an include guard, so we can't use a pipeline to transform its output.
Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d
+ $(MKDIR_P) Include
$(DTRACE) $(DFLAGS) -o $@ -h -s $<
: sed in-place edit with POSIX-only tools
sed 's/PYTHON_/PyDTrace_/' $@ > $@.tmp
diff --git a/Misc/ACKS b/Misc/ACKS
index b38a1fe..486b6e3 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1476,6 +1476,7 @@
Michael Stone
Serhiy Storchaka
Ken Stox
+Charalampos Stratakis
Dan Stromberg
Donald Stufft
Daniel Stutzbach
diff --git a/Misc/NEWS b/Misc/NEWS
index e7090fc..58b8d26 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -130,6 +130,9 @@
Build
-----
+- bpo-28787: Fix out-of-tree builds of Python when configured with
+ ``--with--dtrace``.
+
- bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
``make install`` and some other make targets when configured with
``--enable-optimizations``.