public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] PR libstdc++/90770 fix missing src/debug/Makefile
@ 2019-06-07 19:58 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2019-06-07 19:58 UTC (permalink / raw)
  To: libstdc++, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

	PR libstdc++/90770
	* configure: Regenerate.
	* src/Makefile.am (stamp-debug): Also test for missing makefile.
	* src/Makefile.in: Regenerate.

I'm not sure how the src/debug/Makefile gets removed without the
directory it's in being removed, but this makes it work despite that.

Committed to trunk. I think this should be backported too.


[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1024 bytes --]

commit 756e59b0a6d1202547cb618d1eb422dddf16fc80
Author: redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Jun 7 19:57:19 2019 +0000

    PR libstdc++/90770 fix missing src/debug/Makefile
    
            PR libstdc++/90770
            * configure: Regenerate.
            * src/Makefile.am (stamp-debug): Also test for missing makefile.
            * src/Makefile.in: Regenerate.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272050 138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/libstdc++-v3/src/Makefile.am b/libstdc++-v3/src/Makefile.am
index 436c2c56f13..8511a3049c5 100644
--- a/libstdc++-v3/src/Makefile.am
+++ b/libstdc++-v3/src/Makefile.am
@@ -325,7 +325,7 @@ endif
 # Take care to fix all possibly-relative paths.
 debugdir = ${glibcxx_builddir}/src/debug
 stamp-debug:
-	if test ! -d ${debugdir}; then \
+	if test ! -d ${debugdir} || test ! -f ${debugdir}/Makefile ; then \
 	  mkdir -p ${debugdir}; \
 	  for d in $(SUBDIRS); do mkdir -p  ${debugdir}/$$d; done; \
 	  (cd ${debugdir}; \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-07 19:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07 19:58 [PATCH] PR libstdc++/90770 fix missing src/debug/Makefile Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).