diff options
author | Niclas Zeising <zeising@FreeBSD.org> | 2013-12-16 14:52:26 +0000 |
---|---|---|
committer | Niclas Zeising <zeising@FreeBSD.org> | 2013-12-16 14:52:26 +0000 |
commit | b9c90aa46af1067eabd22c7d490335a4496964e0 (patch) | |
tree | 609d963c9518a4d6ca8e398cf784b5b086e50826 /devel/binutils/files/patch-gold_system.h | |
parent | net/minidlna: use newer kqueue patch (diff) |
Update to 2.24
Do not install libiberty.a to aviod conflicts with devel/gnulibiberty [0]
Do not install include/ansidecl.h, to avoid conflicts with gcc49 [1]
Fix gold usage when linking c++ code, related to ctors [2]
Thanks to dim for help with getting gold to build with libc++!
PR: ports/176406 [0], ports/184327 [1]
Submitted by: Craig Leres <leres@ee.lbl.gov> [0]
Gerald Pfeifer <gerald@pfeifer.com> [1]
Requested by: rdivacky [2]
Diffstat (limited to 'devel/binutils/files/patch-gold_system.h')
-rw-r--r-- | devel/binutils/files/patch-gold_system.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/devel/binutils/files/patch-gold_system.h b/devel/binutils/files/patch-gold_system.h new file mode 100644 index 000000000000..fd1289e1c437 --- /dev/null +++ b/devel/binutils/files/patch-gold_system.h @@ -0,0 +1,24 @@ +--- gold/system.h.orig 2013-11-04 16:33:39.000000000 +0100 ++++ gold/system.h 2013-12-14 12:51:17.000000000 +0100 +@@ -57,7 +57,20 @@ + + // Figure out how to get a hash set and a hash map. + +-#if defined(HAVE_TR1_UNORDERED_SET) && defined(HAVE_TR1_UNORDERED_MAP) \ ++#if defined(HAVE_UNORDERED_SET) && defined(HAVE_UNORDERED_MAP) ++ ++#include <unordered_set> ++#include <unordered_map> ++ ++// We need a template typedef here. ++ ++#define Unordered_set std::unordered_set ++#define Unordered_map std::unordered_map ++#define Unordered_multimap std::unordered_multimap ++ ++#define reserve_unordered_map(map, n) ((map)->rehash(n)) ++ ++#elif defined(HAVE_TR1_UNORDERED_SET) && defined(HAVE_TR1_UNORDERED_MAP) \ + && defined(HAVE_TR1_UNORDERED_MAP_REHASH) + + #include <tr1/unordered_set> |