void-packages/srcpkgs/llvm8/files/patches/cfe
q66 ae921ec4d3 llvm8: clang cross-compiling and musl fixes
This involves two things.

The first thing is fixing the patch that adds musl target triples
into our clang; previously the patch wasn't correct, as it simply
added the musl triples among the GNU triples, which, when cross
compiling to musl targets, resulted in clang considering the GCC
cross installations for glibc and same arch for linking the crt
files; this resulted in broken builds. The new patch only considers
musl triples for musl targets and glibc triples for glibc targets,
so even if you have two cross-gccs installed in parallel for the
same arch (one for musl and one for glibc) it will not pick the
wrong ones.

The second thing is making clang use 64-bit long double for musl
ppc targets correctly. Previously there was no logic for specifying
this and that resulted in 128-bit long double using binaries
emitted by clang for musl and ppc(64). With our specific gcc
setup, that resulted in linking failures as the 128bit ldbl
runtime funcs were not available, and even if they were, the
results would be incorrect.

This also replaces the old zzz-aarch64.patch with a version fixed
for ppc.

[ci skip]

Closes: #11866 [via git-merge-pr]
2019-05-22 20:12:32 +02:00
..
cfe-001-fix-stdint.patch
cfe-003-fix-unwind-chain-inclusion.patch
cfe-004-add-musl-triples.patch llvm8: clang cross-compiling and musl fixes 2019-05-22 20:12:32 +02:00
cfe-005-ppc64-dynamic-linker-path.patch
cfe-006-ppc64-musl-elfv2.patch
cfe-007-ppc-musl-long-double-64.patch