I was able to get static linking working recently using docker alpine
images and ghcup to install GHC based on the musl library. The details are
in my Stan fork [1]. This borrowed heavily from ShellCheck's static
linking release system except it uses cabal v2-build instead of v1.
[1]
Script:
Hi Volker,
You may also want to check out ghc-musl project
https://github.com/utdemir/ghc-musl which provides compiled docker images to
build atatic executables for various ghc versions.
Cheers,
--
aycan
> On Aug 11, 2020, at 5:59 AM, Volker Wysk wrote:
>
> Am Dienstag, den 11.08.2020,
Am Dienstag, den 11.08.2020, 10:26 +0200 schrieb Herrmann, Andreas:
> Hi Volker,
Hi!
> > Is it possible to link the remaining libraries statically too?
>
> Yes, it is possible to generate fully statically linked Haskell
> binaries. Though it requires a bit of setup. For example the GNU C
>
Hi Volker,
> Is it possible to link the remaining libraries statically too?
>
Yes, it is possible to generate fully statically linked Haskell binaries.
Though it requires a bit of setup. For example the GNU C library glibc is
not really intended for fully static linking, but you can use musl as