diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-09-16 21:21:56 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-09-16 23:06:38 +0100 |
commit | fce4e12f8efb3b3db959b807201e08786b001f39 (patch) | |
tree | 28958656db4a45c4e4a9f7ccae1e507f866940e8 /libstdc++-v3/src | |
parent | 433789330609c571983a4e1f5c3e0caf3d7a6178 (diff) | |
download | gcc-fce4e12f8efb3b3db959b807201e08786b001f39.zip gcc-fce4e12f8efb3b3db959b807201e08786b001f39.tar.gz gcc-fce4e12f8efb3b3db959b807201e08786b001f39.tar.bz2 |
libstdc++: Regenerate the src/debug Makefiles as needed
When the build configuration changes and Makefiles are recreated, the
src/debug/Makefile and src/debug/*/Makefile files are not recreated,
because they're not managed in the usual way by automake. This can lead
to build failures or surprising inconsistencies between the main and
debug versions of the library when doing incremental builds.
This causes them to be regenerated if any of the corresponding non-debug
makefiles is newer.
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* src/Makefile.am (stamp-debug): Add all Makefiles as
prerequisites.
* src/Makefile.in: Regenerate.
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/Makefile.am | 2 | ||||
-rw-r--r-- | libstdc++-v3/src/Makefile.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/src/Makefile.am b/libstdc++-v3/src/Makefile.am index 16f4cc6..f27d3f8 100644 --- a/libstdc++-v3/src/Makefile.am +++ b/libstdc++-v3/src/Makefile.am @@ -369,7 +369,7 @@ endif # Build a debug variant. # Take care to fix all possibly-relative paths. debugdir = ${glibcxx_builddir}/src/debug -stamp-debug: +stamp-debug: Makefile $(foreach dir,$(SUBDIRS),$(dir)/Makefile) if test ! -d ${debugdir} || test ! -f ${debugdir}/Makefile ; then \ mkdir -p ${debugdir}; \ for d in $(SUBDIRS); do mkdir -p ${debugdir}/$$d; done; \ diff --git a/libstdc++-v3/src/Makefile.in b/libstdc++-v3/src/Makefile.in index 4df5c82..05b25ed 100644 --- a/libstdc++-v3/src/Makefile.in +++ b/libstdc++-v3/src/Makefile.in @@ -1090,7 +1090,7 @@ libstdc++convenience.la: $(toolexeclib_LTLIBRARIES) cp .libs/libstdc++convenience.a .libs/libstdc++.a; \ fi; \ echo `date` > stamp-libstdc++convenience; -stamp-debug: +stamp-debug: Makefile $(foreach dir,$(SUBDIRS),$(dir)/Makefile) if test ! -d ${debugdir} || test ! -f ${debugdir}/Makefile ; then \ mkdir -p ${debugdir}; \ for d in $(SUBDIRS); do mkdir -p ${debugdir}/$$d; done; \ |