Use @rpath in Xcode project
authorSean McBride <sean@rogue-research.com>
Tue, 22 Apr 2014 20:53:17 +0000 (16:53 -0400)
committerNathan Hjelm <hjelmn@me.com>
Tue, 6 May 2014 07:28:08 +0000 (01:28 -0600)
In the Xcode project, set:

LD_DYLIB_INSTALL_NAME = @rpath

Such that the built dylib's install name uses rpath, which is
generally what one wants.

Xcode/libusb.xcconfig
libusb/version_nano.h

index 1f8a01f..12f0c46 100644 (file)
@@ -18,3 +18,4 @@
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
 PRODUCT_NAME = libusb-1.0.0
+LD_DYLIB_INSTALL_NAME = @rpath/libusb-1.0.0.dylib
index 82c1717..9516b27 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10881
+#define LIBUSB_NANO 10882