diff --git a/sdl_backend.go b/sdl_backend.go index 29344032b..4106fd8d7 100644 --- a/sdl_backend.go +++ b/sdl_backend.go @@ -3,7 +3,7 @@ package imgui // #cgo amd64,linux LDFLAGS: ${SRCDIR}/lib/linux/x64/libSDL2.a -ldl -lGL -lX11 -// #cgo amd64,windows LDFLAGS: -L${SRCDIR}/lib/windows/x64 -l:libSDL2.a -lgdi32 -lopengl32 -limm32 +// #cgo amd64,windows LDFLAGS: -L${SRCDIR}/lib/windows/x64 -l:libSDL2.a -lSDL2main -lgdi32 -lopengl32 -limm32 -mwindows -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion -luuid // #cgo darwin LDFLAGS: -framework Cocoa -framework IOKit -framework CoreVideo // #cgo amd64,darwin LDFLAGS: ${SRCDIR}/lib/macos/x64/libSDL2.a // #cgo arm64,darwin LDFLAGS: ${SRCDIR}/lib/macos/arm64/libSDL2.a