CVSROOT: /cvs
Module name: ports
Changes by: [email protected] 2018/11/22 11:05:22
Added files:
lang/gcc/6/patches: patch-libstdc++-v3_src_c++11_debug_cc
Log message:
Add a patch replacing __builtin_sprintf calls by __builtin_snprintf in
debug code.
Fixes the dreaded 'sprintf() is often misused, please use snprintf()'
warning from ld.bfd on libestdc++.so.18.0 when linking any c++ code.
As a side effect, this fixes cmake configure which errored out on this
warning. cmake now plans to ignore the warning per
https://gitlab.kitware.com/cmake/cmake/issues/18602 but fixing the
warning might help other things.
Note that gcc 6 is still not linked to the build, but progress is made
towards this goal. patch successfully tested on macppc & sparc64, where
cmake built & packaged.
original patch from George Koehler (thanks!) replacing the calls by
snprintf, changes to __builtin suggested by espie@.