From 33f5e9b3e06f2f784d4b029c95550f902bcfea2e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 6 Jan 2016 20:33:49 -0500 Subject: [PATCH] Fixed linker issues and updated to the new OS X-based soname versioning. --- README.md | 4 ++-- link_darwin.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b7742ea..2b6f504 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ If you want to play around with this new package ui, you'll need to install libu - On Windows, merely copy out\libui.dll to the root of this repo. - Go 1.5 is adequate. -- On OS X, copy out/libui.dylib to the root of this repo as libui.0.dylib and symlink it to libui.dylib +- On OS X, copy out/libui.A.dylib to the root of this repo as libui.A.dylib and symlink it to libui.dylib - You must also be running Go 1.6 from master or Beta 2 or newer due to more Go bugs. -- On other Unixes, copy out/libui.so to the root of this repo as libui.so.0 and symlink it to libui.so +- On other Unixes, copy out/libui.so.0 to the root of this repo as libui.so.0 and symlink it to libui.so - Go 1.5 is adequate. and then copy ui.h to the top of this repo as well. (You may symlink any files instead of copying if so choose.) diff --git a/link_darwin.go b/link_darwin.go index ccf2942..1ce88f8 100644 --- a/link_darwin.go +++ b/link_darwin.go @@ -2,7 +2,7 @@ package ui -// #cgo LDFLAGS: -L${SRCDIR} -lui -framework CoreFoundation -lpthread -rpath @executable_path +// #cgo LDFLAGS: -L${SRCDIR} -lui -framework CoreFoundation -lpthread -Wl,-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