This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][gold] compiling gold with libc++ and __stl_hash_string


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]