diff --git a/README.md b/README.md index 18cab664..480c05b8 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ * darwin/amd64 * linux/386 * linux/amd64 +* linux/arm (only tested on a Raspberry Pi 2) * windows/386 * windows/amd64 diff --git a/libui_linux_arm.a b/libui_linux_arm.a new file mode 100644 index 00000000..74c83b37 Binary files /dev/null and b/libui_linux_arm.a differ diff --git a/link_linux_arm.go b/link_linux_arm.go new file mode 100644 index 00000000..6b41dcb7 --- /dev/null +++ b/link_linux_arm.go @@ -0,0 +1,14 @@ +// +build !windows +// +build !darwin + +// 14 Oct 2016 + +package ui + +// #cgo LDFLAGS: ${SRCDIR}/libui_linux_arm.a -lm -ldl +// #cgo pkg-config: gtk+-3.0 +import "C" + +func ensureMainThread() { + // do nothing; GTK+ doesn't care which thread we're on so long as we don't change it after starting +}