1 |
commit: d689573d4e6f4a21922de047db82e8a716f6c633 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 14 08:02:08 2021 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 14 08:02:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d689573d |
7 |
|
8 |
eclass/toolchain.eclass: set DYLD_LIBRARY_PATH for Darwin9 libstdc++ |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
eclass/toolchain.eclass | 13 +++++++++++++ |
13 |
1 file changed, 13 insertions(+) |
14 |
|
15 |
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
16 |
index e5d4dd6ca9..6e7411559a 100644 |
17 |
--- a/eclass/toolchain.eclass |
18 |
+++ b/eclass/toolchain.eclass |
19 |
@@ -2080,6 +2080,19 @@ create_gcc_env_entry() { |
20 |
GCC_SPECS="${gcc_specs_file}" |
21 |
MULTIOSDIRS="${mosdirs}" |
22 |
EOF |
23 |
+ |
24 |
+ # crude hack, but necessary :( |
25 |
+ # Darwin9's libstdc++ is incompatible with later GCC's libstdc++ |
26 |
+ # causing ugly malloc warnings about non-aligned pointers, but in |
27 |
+ # cmake's case, also crashes, unfortunately. See also: |
28 |
+ # https://trac.macports.org/ticket/59832 |
29 |
+ # our only way out here is to set DYLD_LIBRARY_PATH to replace the |
30 |
+ # libstdc++ used by the Frameworks that cmake links in |
31 |
+ if [[ ${CHOST} == *-darwin9 ]] ; then |
32 |
+ cat <<-EOF >> ${gcc_envd_file} |
33 |
+ DYLD_LIBRARY_PATH="${LIBPATH}" |
34 |
+ EOF |
35 |
+ fi |
36 |
} |
37 |
|
38 |
create_revdep_rebuild_entry() { |