[WiP] Creating a snap package of LDC

Joseph Rushton Wakeling via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Aug 28 13:56:06 PDT 2016


On Sunday, 28 August 2016 at 20:27:21 UTC, David Nadlinger wrote:
> You need a GCC-compatible linker driver, which links in the C 
> standard libraries. (The latter is the reason why (g)cc is used 
> instead of ld.) You might need to pull in the full GCC package 
> if there is no other way to depend on a C toolchain.

Ouch!  But while that might be nasty to deal with short-term, in 
the long run it'll probably be possible to interact with a 
separate gcc snap.

>>> and how would I ensure that the built ldc2 tries to use 
>>> _that_ linker rather than some other one?
>
> You can set the CC environment variable when invoking LDC (or 
> use the hidden "-gcc" option). Otherwise, we use 
> llvm::findProgramByName("gcc"), which searches the PATH.

OK, thanks.  I'll see what I can come up with package-wise ...


More information about the digitalmars-d-ldc mailing list