More static library linker setup.
This commit is contained in:
parent
a2db124cc9
commit
b9c3e87d5d
|
@ -3,7 +3,6 @@
|
|||
package ui
|
||||
|
||||
// #cgo LDFLAGS: ${SRCDIR}/libui_darwin_amd64.a -framework Foundation -framework AppKit -lpthread
|
||||
// /* (thanks to http://jorgen.tjer.no/post/2014/05/20/dt-rpath-ld-and-at-rpath-dyld/ for the @executable_path clarifiaction) */
|
||||
// #include <CoreFoundation/CoreFoundation.h>
|
||||
// #include <pthread.h>
|
||||
// extern void _CFRunLoopSetCurrent(CFRunLoopRef);
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
package ui
|
||||
|
||||
// #cgo LDFLAGS: -L${SRCDIR} -lui -Wl,-rpath=$ORIGIN
|
||||
// #cgo LDFLAGS: ${SRCDIR}/libui_linux_386.a -Wl,-rpath=$ORIGIN
|
||||
// #cgo pkg-config: gtk+-3.0
|
||||
import "C"
|
||||
|
||||
func ensureMainThread() {
|
|
@ -0,0 +1,14 @@
|
|||
// +build !windows
|
||||
// +build !darwin
|
||||
|
||||
// 11 december 2015
|
||||
|
||||
package ui
|
||||
|
||||
// #cgo LDFLAGS: ${SRCDIR}/libui_linux_amd64.a -Wl,-rpath=$ORIGIN
|
||||
// #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
|
||||
}
|
Loading…
Reference in New Issue