Open uuhan opened 6 years ago
What are you trying to achieve? What's wrong with having dynamically linked libraries?
@ShabbyX It is not clean to deploy my app. I mean I need to copy a lot of *.dylib (such as libHScryptonite-0.23-KdtCN1cvMCVhfx481qIRG-ghc8.0.2.dylib) along with libpandoc.so. If it is possible to build libpandoc.so with -static, I need just copy one file, libpandoc.so
Well, It seems not easy to make a shared library without -dynamic option in Haskell world. I test it on macOS, and comment out the line:
-- Ghc-Options: -dynamic
Failed to compile with the following error: ld: illegal text reloc in '_cinV_info' to '_stg_ap_4_upd_info' for architecture x86_64