diff options
| author | Pietro Gagliardi <[email protected]> | 2015-12-19 16:46:28 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-12-19 16:46:28 -0500 |
| commit | 7b025499c8ed3e22019d652267c2837a1ce97a62 (patch) | |
| tree | d5d22908433c99d4c851df9dac83410ce872580f /link_darwin.go | |
| parent | d5a93806e8a4f3dc6ad851e9c0600b9ca12d34f2 (diff) | |
Set up rpath properly on OS X.
Diffstat (limited to 'link_darwin.go')
| -rw-r--r-- | link_darwin.go | 3 |
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); |
