Static linking D apps for distribution to the cloud, etc.

Laeeth Isharc Laeeth at laeeth.com
Wed Oct 9 22:54:17 UTC 2019


On Wednesday, 9 October 2019 at 09:33:18 UTC, Jacob Carlborg 
wrote:
> On Tuesday, 8 October 2019 at 18:28:14 UTC, David J Kordsmeier 
> wrote:
>> Hi forums, I have what should be a simple question.  I have an 
>> application which I would like to distribute to the cloud onto 
>> a linux system which I will not have root access.  I thought 
>> it should be easier for me to perform static linking of this D 
>> app instead of packing the application with library 
>> dependencies.
>
> Alternatively you can build inside a Docker container with the 
> same distribution and version as the machine running in the 
> cloud. Then you should be able to do dynamic linking and run 
> the binary in the cloud without any problem.
>
> --
> /Jacob Carlborg

And of course what seems to be merely a statically linked binary 
can be a container with its own filesystem and carry dependencies 
with it.

https://blog.jessfraz.com/post/nerd-sniped-by-binfmt_misc/

https://github.com/genuinetools/binctr









More information about the Digitalmars-d mailing list