[Haskell-cafe] How to statically link some external libraries?
Kai Zhang
zk65900931 at gmail.com
Tue Jul 18 18:46:31 UTC 2017
I want to produce a statically-linked executable. First I tried
"-optl-static -optc-static -optl-pthrea", which statically links all
external libraries. But when I ran this executable it gives me "abort (core
dumped)" error. I suspect the statically-linked glibc library might be the
cause. So I decide to statically link all other libraries and leave the
glibc as a dynamic library. How to do this using Cabal? Should I write a
custom "Setup.hs"?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170718/4bfe0d47/attachment.html>
More information about the Haskell-Cafe
mailing list