v1.5 branch refresh based upon upstream master @ c8677ca89e53e3be7988d54280fce166cc894a7e
[librecmc/librecmc.git] / toolchain / gcc / patches / 7.3.0 / 940-no-clobber-stamp-bits.patch
1 commit 548d9a008ff265e9eaa3c7e0e6e301c6bd5645e6
2 Author: Felix Fietkau <nbd@openwrt.org>
3 Date:   Fri Dec 12 17:01:57 2014 +0000
4
5     gcc: don't clobber stamp-bits with a symlink to itself
6     
7     Several versions of gcc have an issue in libstdc++v3 where the build may
8     clobber stamp-bits with a link to itself.  This doesn't manifest itself
9     on all systems.  On several Ubuntu systems, this doesn't appear to be a
10     problem, but it is an issue on Fedora 16 systems.
11     
12     To fix the issue, we'll simply filter out stamp-bits from the symlinks
13     to be generated.
14     
15     Note: gcc 4.4.7 is unaffected by this issue, so no fix is necessary
16     there.
17     
18     Signed-off-by: John Szakmeister <john@szakmeister.net>
19     
20     SVN-Revision: 43669
21
22
23 --- a/libstdc++-v3/include/Makefile.in
24 +++ b/libstdc++-v3/include/Makefile.in
25 @@ -1475,7 +1475,7 @@ stamp-bits: ${bits_headers}
26         @$(STAMP) stamp-bits
27  
28  stamp-bits-sup: stamp-bits ${bits_sup_headers}
29 -       @-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
30 +       @-cd ${bits_builddir} && $(LN_S) $(filter-out stamp-bits,$?) . 2>/dev/null
31         @$(STAMP) stamp-bits-sup
32  
33  stamp-c_base: ${c_base_headers}