]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add missing prerequisite to generated header [PR106162]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Jul 2022 21:23:43 +0000 (22:23 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Sat, 23 Jul 2022 11:29:32 +0000 (12:29 +0100)
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)

libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in

index fad5c68382478420b20fab48164b6aaf0ff41a04..ffac9427434f86e2dac683c805e73ee0f633054a 100644 (file)
@@ -1248,7 +1248,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
index 1ca4b7be55e147c45f05b5b7ef9daeefd321b8f7..32e3c8e1f37595a56ccb7ff0dd27a56aa0f335e8 100644 (file)
@@ -1729,7 +1729,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