https://bugs.winehq.org/show_bug.cgi?id=50496
--- Comment #4 from adam@pimentel.space --- Created attachment 69158 --> https://bugs.winehq.org/attachment.cgi?id=69158 program source code (saddle.cpp)
In my makefile, I compile saddle.exe with
$(WINDOWS_CC) saddle.cpp -o saddle.exe -static -lglew32 -lopengl32 $(shell /usr/x86_64-w64-mingw32/bin/sdl2-config --static-libs)
which expands to
x86_64-w64-mingw32-g++ -s -O3 saddle.cpp -o saddle.exe -static -lglew32 -lopengl32 -L/opt/local/x86_64-w64-mingw32/lib -lmingw32 -lSDL2main -lSDL2 -mwindows -Wl,--no-undefined -Wl,--dynamicbase -Wl,--nxcompat -Wl,--high-entropy-va -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid -static-libgcc