From 7b025499c8ed3e22019d652267c2837a1ce97a62 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 19 Dec 2015 16:46:28 -0500 Subject: [PATCH] Set up rpath properly on OS X. --- link_darwin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);