[PATCH][gold] compiling gold with libc++ and __stl_hash_string
Ian Lance Taylor
iant@google.com
Wed Dec 18 22:44:00 GMT 2013
On Wed, Dec 18, 2013 at 10:25 AM, Jan Voung <jvoung@google.com> wrote:
>
> I've tried to compile gold with clang and libc++. I ran into an issue
> with __stl_hash_string. With the following patch, gold compiles.
That's not the right fix. That code should only be used if gold is
using <ext/hash_map>, which is a fall back for older compilers.
Currently gold prefers <tr1/unordered_map>. I think we need to add a
case to configure.ac and system.h to use <unordered_map> if it is
available, as I assume it is for libc++.
Ian
More information about the Binutils
mailing list