haskell - How do I invoke the “--enable-stdcall-fixup” option? -
while building dll under windows following output:
linking main.exe ... warning: resolving _findpeakswrapper linking _findpeakswrapper@16 use --enable-stdcall-fixup disable these warnings creating library file: hsdll.dll.a use --disable-stdcall-fixup disable these fixups
it’s not clear me should placing --enable-stdcall-fixup
flag. putting ghc-options
field of .cabal file gives ghc error, while putting cc-options
or ld-options
seems not (the warnings still displayed). should flag go?
googling indicates --enable-stdcall-fixup
option ld. there few different pathways cabal's final link step can happen, in case apparently
cabal -> ghc (link step) -> gcc -> ld
so match must specify
ghc-options: -optl-wl,--enable-stdcall-fixup
Comments
Post a Comment