940-no-clobber-stamp-bits.patch 1.1 KB

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