From a92ac101a5d06e864ee584f33d07cb6554f28a35 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Thu, 28 Feb 2013 07:16:10 +0000 Subject: [PATCH] INSTALL-MAC libusb instructions Now include the patch required to get a compilation going. Thanks to Gareth for the link. --- INSTALL-MAC | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/INSTALL-MAC b/INSTALL-MAC index b466ab764..ce3765414 100644 --- a/INSTALL-MAC +++ b/INSTALL-MAC @@ -277,6 +277,11 @@ note: the added CXXFLAGS helped clear the -Werror flag that stopped compilation. ------------------------------------------ libusb (0.1.12) + +To compile on OSX you need to apply the patch here: +https://trac.macports.org/browser/trunk/dports/devel/libusb-legacy/files?rev=97840 + +Then: ./configure --prefix=/opt/libusb/ CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" --disable-dependency-tracking then sed -i 'bak' 's|CC -dynamiclib|CC -dynamiclib -arch x86_64|g' libtool