Set up rpath properly on OS X.

This commit is contained in:
Pietro Gagliardi 2015-12-19 16:46:28 -05:00
parent d5a93806e8
commit 7b025499c8
1 changed files with 2 additions and 1 deletions

View File

@ -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);