From 6dd358365e0158db3a5c896b9eb50a9cebe4d434 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Tue, 19 Dec 2017 07:54:53 +0100 Subject: [PATCH] Added support for allegro_static flag (enables static linking of allegro). --- allegro5/c.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/allegro5/c.go b/allegro5/c.go index 75aee97..ec0edea 100644 --- a/allegro5/c.go +++ b/allegro5/c.go @@ -1,5 +1,6 @@ package allegro5 // #cgo !windows pkg-config: allegro-5 allegro_font-5 allegro_image-5 allegro_primitives-5 allegro_ttf-5 -// #cgo windows LDFLAGS: -lallegro -lallegro_font -lallegro_image -lallegro_primitives -lallegro_ttf +// #cgo windows,!allegro_static LDFLAGS: -lallegro -lallegro_font -lallegro_image -lallegro_primitives -lallegro_ttf +// #cgo windows,allegro_static LDFLAGS: -lallegro_monolith-static -ljpeg -ldumb -lFLAC -lfreetype -lvorbisfile -lvorbis -logg -lphysfs -lpng16 -lzlib -luuid -lkernel32 -lwinmm -lpsapi -lopengl32 -lglu32 -luser32 -lcomdlg32 -lgdi32 -lshell32 -lole32 -ladvapi32 -lws2_32 -lshlwapi -lstdc++ import "C"