[llvm-dev] Building a program with LLVM on Unix

David Chisnall via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 23 11:18:33 PDT 2016


On 23 Mar 2016, at 18:06, Russell Wallace <russell.wallace at gmail.com> wrote:
> 
> On Wed, Mar 23, 2016 at 5:55 PM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
> If you’re shipping binaries, statically link.
> 
> That's a good question - should I ship binaries? I've picked up the idea that if you want a Linux program of a version that isn't included in your distro packages, you build from source, but it seems here that including a binary in the tarball would do no harm, and perhaps save users some trouble? It seems to make sense but be something not usually done, so I figure I'd better check.

If the source is available and you have a vaguely sane release model (i.e. tarballs are available, dependencies are all on released versions of software), don’t ship binaries, just let the distributions worry about packaging it.

David



More information about the llvm-dev mailing list