ShabbyX / libpandoc

C bindings to Pandoc, a markup converter library written in Haskell.
88 stars 16 forks source link

I wonder if it is possible to build libpandoc without -dynamic option #15

Open uuhan opened 6 years ago

uuhan commented 6 years ago

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

ShabbyX commented 6 years ago

What are you trying to achieve? What's wrong with having dynamically linked libraries?

uuhan commented 6 years ago

@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