[Haskell-cafe] Haskell with C++: removing runtime dependencies on Windows 10.
aditya.siram at gmail.com
Thu Jan 19 22:16:48 UTC 2017
I am trying to create an executable on Windows 10 with some Haskell->C++
bindings I wrote but having trouble getting rid of some runtime DLL
dependencies. I'm currently compiling and linking using the MSYS2 and GHC
environment that ships with Windows Stack installer but no matter what I do
I end up with the following dependencies:
$ ldd <executable>
I have verified that the standalone versions of those libs are in available
in stack install:
I've unsuccessfully tried to link them into the executable using many
combinations of `-optl-static`, `-optl-static-gcc`, and
`-optl-static-stdc++` and also passing along these libraries "
raw" to the linker like:
`ghc-Options: -pgml g++ "-optl-Wl,--whole-archive" "-optl-Wl,-Bstatic"
"-optl-Wl,-lstdc++" "-optl-Wl,-Bdynamic" "-optl-Wl,--no-whole-archive"
Short of shipping these DLL with the executable (which I'd really rather
not do) I'm running out of ideas so any suggestions would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe