We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3952

Summary: MinGW: help ./configure find shared libraries for dynamic loading
Product: SDL_mixer Reporter: Fabian Greffrath <fabian+debian>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.2   
Hardware: x86_64   
OS: Linux   
Attachments: MinGW: help ./configure find shared libraries for dynamic loading

Description Fabian Greffrath 2017-11-10 12:33:20 UTC
Created attachment 3078 [details]
MinGW: help ./configure find shared libraries for dynamic loading

We apply the attached patch to the mingw-w64-SDL2_mixer package in MSYS2:

https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-SDL2_mixer

When using the 64-bit variant of the MinGW compiler, the configure script fails to find any of the installed shared libraries for dynamic linking. The patch fixes this issue by replacing the "*-*-mingw32*" search pattern with "*-*-mingw*".

Then, some libraries are installed with a "lib" prefix while others are not. I have extended the problematic cases with both alternatives.

Last but not least, libraries might have been installed into any of the directories accessible via the PATH environment variable, so we search in these paths as well.

Best regards,

 - Fabian