summaryrefslogtreecommitdiff
path: root/toolchain/gcc/patches/5.2.0/940-no-clobber-stamp-bits.patch
blob: bf2ab07303e5c2e7e530a910a67b1f1e658c39d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/libstdc++-v3/include/Makefile.in
+++ b/libstdc++-v3/include/Makefile.in
@@ -1382,7 +1382,7 @@ stamp-bits: ${bits_headers}
 	@$(STAMP) stamp-bits
 
 stamp-bits-sup: stamp-bits ${bits_sup_headers}
-	@-cd ${bits_builddir} && $(LN_S) $? . 2>/dev/null
+	@-cd ${bits_builddir} && $(LN_S) $(filter-out stamp-bits,$?) . 2>/dev/null
 	@$(STAMP) stamp-bits-sup
 
 stamp-c_base: ${c_base_headers}