Fixed Linux static linking.

This commit is contained in:
Pietro Gagliardi 2016-05-29 23:44:09 -04:00
parent b9c3e87d5d
commit c9b32c1333
3 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,8 @@
package ui
// #cgo LDFLAGS: ${SRCDIR}/libui_darwin_amd64.a -framework Foundation -framework AppKit -lpthread
// #cgo CFLAGS: -mmacosx-version-min=10.8 -DMACOSX_DEPLOYMENT_TARGET=10.8
// #cgo LDFLAGS: ${SRCDIR}/libui_darwin_amd64.a -framework Foundation -framework AppKit -lpthread -mmacosx-version-min=10.8
// #include <CoreFoundation/CoreFoundation.h>
// #include <pthread.h>
// extern void _CFRunLoopSetCurrent(CFRunLoopRef);

View File

@ -5,7 +5,7 @@
package ui
// #cgo LDFLAGS: ${SRCDIR}/libui_linux_386.a -Wl,-rpath=$ORIGIN
// #cgo LDFLAGS: ${SRCDIR}/libui_linux_386.a -lm -ldl
// #cgo pkg-config: gtk+-3.0
import "C"

View File

@ -5,7 +5,7 @@
package ui
// #cgo LDFLAGS: ${SRCDIR}/libui_linux_amd64.a -Wl,-rpath=$ORIGIN
// #cgo LDFLAGS: ${SRCDIR}/libui_linux_amd64.a -lm -ldl
// #cgo pkg-config: gtk+-3.0
import "C"