summaryrefslogtreecommitdiff
path: root/link_darwin_amd64.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2016-05-29 23:44:09 -0400
committerPietro Gagliardi <[email protected]>2016-05-29 23:44:09 -0400
commitc9b32c1333e4009b342eedc5f5b39127a724fb42 (patch)
tree5cd3aa5d653db31cd8b4ac7401ead9d8d1a40b6f /link_darwin_amd64.go
parentb9c3e87d5df7ec94e9bbdd8a29822d7fdca67d8c (diff)
Fixed Linux static linking.
Diffstat (limited to 'link_darwin_amd64.go')
-rw-r--r--link_darwin_amd64.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/link_darwin_amd64.go b/link_darwin_amd64.go
index eee19e2..3a848b3 100644
--- a/link_darwin_amd64.go
+++ b/link_darwin_amd64.go
@@ -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);