Is it possible to build ghc with static linkage to its dependencies?

Hi GHC Devs, I'd like to build ghc for an environment (linux x86_64) that I don't fully control, and most importantly libgmp.so on that environment is severely outdated. I was wondering if I can build ghc on another linux x86_64 machine but link in all the dependencies as static libraries instead finding them as dynamic libraries? Thank you! Best, Hengchu

If it's just libgmp.so that is outdated, you could try uncommenting the line in build.mk.sample that says: libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-intree-gmp On Thu, Sep 17, 2015 at 5:34 AM, Hengchu Zhang < hengchu.zhang+ghcdev@gmail.com> wrote:
Hi GHC Devs,
I'd like to build ghc for an environment (linux x86_64) that I don't fully control, and most importantly libgmp.so on that environment is severely outdated. I was wondering if I can build ghc on another linux x86_64 machine but link in all the dependencies as static libraries instead finding them as dynamic libraries?
Thank you!
Best, Hengchu
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
participants (2)
-
Hengchu Zhang
-
Thomas Miedema