October 09, 2019
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.

You can also try to build the binary on Alpine and do static linking. Alpine uses musl as the C standard library instead of GNU. musl is designed for static linking.

--
/Jacob Carlborg
October 09, 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







1 2
Next ›   Last »