I’m trying to run the following (based on this):
stack build \
--ghc-options '-fPIC -O3 -static -optl-static -optl-pthread' \
--docker --docker-image "utdemir/ghc-musl:v17-ghc8104" \
--no-nix
But it keeps saying recompile with -fPIC
, even though it’s in the list of options.
If I try with just --ghc-options -fPIC
then it works, but then it’s not using the other options.
I’ve tried various permutations (--ghc-options
before every option, reordering the options, a space at the beginning of the string, an =
after --ghc-options
) but haven’t found one that actually works.