
This patch is mostly copy-past from answers found in: http://www.marshut.com/ikhnkn/compiling-gold-with-libc-and-stl-hash-string.html This combines the first submitted patch, but applied on gold/gold.h instead of gold/system.h, as well as the freebsd changes.