gcc: don't clobber stamp-bits with a symlink to itself
[15.05/openwrt.git] / toolchain / gcc / patches / 4.9-linaro / 940-no-clobber-stamp-bits.patch
1 Index: gcc-linaro-4.9-2014.10/libstdc++-v3/include/Makefile.in
2 ===================================================================
3 --- gcc-linaro-4.9-2014.10.orig/libstdc++-v3/include/Makefile.in        2013-11-16 12:44:48.000000000 -0500
4 +++ gcc-linaro-4.9-2014.10/libstdc++-v3/include/Makefile.in     2014-12-02 06:23:02.236660279 -0500
5 @@ -1366,7 +1366,7 @@
6         @$(STAMP) stamp-bits
7  
8  stamp-bits-sup: stamp-bits ${bits_sup_headers}
9 -       @-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
10 +       @-cd ${bits_builddir} && $(LN_S) $(filter-out stamp-bits,$?) . 2>/dev/null
11         @$(STAMP) stamp-bits-sup
12  
13  stamp-c_base: ${c_base_headers}