From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id B9E3C384858A; Thu, 7 Jul 2022 23:33:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9E3C384858A MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-10138] libstdc++: Add missing prerequisite to generated header [PR106162] X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: 5e384aff20a70270062011e958260eb3dc39aca9 X-Git-Newrev: 92f43710bbe5e861d90681ef4691c37b8c70aec6 Message-Id: <20220707233356.B9E3C384858A@sourceware.org> Date: Thu, 7 Jul 2022 23:33:56 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2022 23:33:56 -0000 https://gcc.gnu.org/g:92f43710bbe5e861d90681ef4691c37b8c70aec6 commit r11-10138-g92f43710bbe5e861d90681ef4691c37b8c70aec6 Author: Jonathan Wakely Date: Fri Jul 1 22:23:43 2022 +0100 libstdc++: Add missing prerequisite to generated header [PR106162] The ${host_builddir}/largefile-config.h header can't be written until its parent directory has been created, so it needs to have the creation of that directory as a prerequisite. libstdc++-v3/ChangeLog: PR libstdc++/106162 * include/Makefile.am (largefile-config.h): Add stamp-${host_alias} prerequisite. * include/Makefile.in: Regenerate. (cherry picked from commit 8a6ee426c2be3bd4359520e02c00ec60cac2fece) Diff: --- libstdc++-v3/include/Makefile.am | 2 +- libstdc++-v3/include/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am index 174fafeee5e..16ea5ffef52 100644 --- a/libstdc++-v3/include/Makefile.am +++ b/libstdc++-v3/include/Makefile.am @@ -1275,7 +1275,7 @@ stamp-float128: endif # This header is not installed, it's only used to build libstdc++ itself. -${host_builddir}/largefile-config.h: ${CONFIG_HEADER} +${host_builddir}/largefile-config.h: ${CONFIG_HEADER} stamp-${host_alias} @rm -f $@.tmp @-grep 'define _DARWIN_USE_64_BIT_INODE' ${CONFIG_HEADER} >> $@.tmp @-grep 'define _FILE_OFFSET_BITS' ${CONFIG_HEADER} >> $@.tmp diff --git a/libstdc++-v3/include/Makefile.in b/libstdc++-v3/include/Makefile.in index 814b0a43b3d..877133d8165 100644 --- a/libstdc++-v3/include/Makefile.in +++ b/libstdc++-v3/include/Makefile.in @@ -1761,7 +1761,7 @@ stamp-host: ${host_headers} ${bits_host_headers} ${ext_host_headers} ${host_head @ENABLE_FLOAT128_FALSE@ echo 'undef _GLIBCXX_USE_FLOAT128' > stamp-float128 # This header is not installed, it's only used to build libstdc++ itself. -${host_builddir}/largefile-config.h: ${CONFIG_HEADER} +${host_builddir}/largefile-config.h: ${CONFIG_HEADER} stamp-${host_alias} @rm -f $@.tmp @-grep 'define _DARWIN_USE_64_BIT_INODE' ${CONFIG_HEADER} >> $@.tmp @-grep 'define _FILE_OFFSET_BITS' ${CONFIG_HEADER} >> $@.tmp