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 // #include // extern void _CFRunLoopSetCurrent(CFRunLoopRef);