summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--link_darwin.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/link_darwin.go b/link_darwin.go
index c1d1a20..f94ba80 100644
--- a/link_darwin.go
+++ b/link_darwin.go
@@ -2,7 +2,8 @@
package ui
-// #cgo LDFLAGS: -L${SRCDIR} -lui -framework CoreFoundation -lpthread
+// #cgo LDFLAGS: -L${SRCDIR} -lui -framework CoreFoundation -lpthread -rpath @executable_path
+// /* (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);