Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
stack build doesn't include MinGW bin folder where some DLLs reside (like http-client package) #3126
General summary/comments (optional)
Steps to reproduce
Expected to find eay32.dll which is installed using Stack's MingGW64.
stack build -v output
There is no \bin folder included in extra-lib-dirs. And it cannot find OpenSSL libraries which are compiled and deployed by MinGW64 into \bin folder. When I add:
to .yaml file - it finds it. But I think that it'll be useful if this folder is added automatically by Stack. So every library built with Stack's MinGW to be accessible for Haskell projects built with Stack.
Method of installation
I'm surprised that mingw would put dlls in bin and not lib (though I am not very experienced with mingw). A quick search turned up this old page on mingw: http://www.mingw.org/wiki/HOWTO_Specify_the_Location_of_Libraries_for_use_with_MinGW - and bin isn't among the library search paths.
I'm certainly in favor of streamlining such things, but I'm puzzled why it's necessary. Seems like it shouldn't cause much harm, though, so if it helps some cases I'm in favor of adding it. Here's where it would be added: https://github.com/commercialhaskell/stack/blob/master/src/Stack/Setup/Installed.hs#L134