INSTALL-MAC libusb instructions

Now include the patch required to get a compilation
going. Thanks to Gareth for the link.
This commit is contained in:
Mark Liversedge
2013-02-28 07:16:10 +00:00
parent 68cd0fb40e
commit a92ac101a5

View File

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