Created attachment 1073862 [details] Add static library to mingw-SDL2 Description of problem: There is no package with the complete static mingw-SDL2 library. Only the .dll.a version is provided. Version-Release number of selected component (if applicable): (all) How reproducible: cat >test.c <<EOF #include <SDL2/SDL.h> int WinMain(int argc, char **argv) { SDL_Init(SDL_INIT_VIDEO); SDL_Quit(); return 0; } EOF x86_64-w64-mingw32-gcc test.c -static -lmingw32 -lSDL2main -lSDL2 -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid wine a.exe Steps to Reproduce: 1. Write a Windows application 2. Compile and link with the flags mentioned above 3. Linker complains: cannot find -lSDL2 Actual results: /usr/lib/gcc/x86_64-w64-mingw32/5.1.0/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lSDL2 Expected results: The test program links successfully. The application a.exe does not need SDL2.dll. Additional info: Patch attached When installing the generated rpms, the program above compiles and runs fine (without any need of a dll).
mingw-SDL2-2.0.3-7.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16186
mingw-SDL2-2.0.3-7.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16187
Thanks for submitting the patch. Please test and give karma. :)
mingw-SDL2-2.0.3-7.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update mingw-SDL2' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16187
mingw-SDL2-2.0.3-7.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update mingw-SDL2' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16186
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
A static mingw SDL2 library is available and the source code in the initial bug report compiles and runs correctly.