Browse Source

Add flags for building libusb statically on osx.

nfactor-troky
Con Kolivas 11 years ago
parent
commit
fb2cf630f1
  1. 6
      configure.ac

6
configure.ac

@ -95,12 +95,14 @@ case $target in @@ -95,12 +95,14 @@ case $target in
AC_DEFINE([_WIN32_WINNT], [0x0501], "WinNT version for XP+ support")
;;
powerpc-*-darwin*)
have_darwin=true
CFLAGS="$CFLAGS -faltivec"
OPENCL_LIBS=""
PTHREAD_FLAGS=""
RT_LIBS=""
;;
*-*-darwin*)
have_darwin=true
OPENCL_LIBS="-framework OpenCL"
PTHREAD_FLAGS=""
RT_LIBS=""
@ -327,6 +329,10 @@ if test "x$want_usbutils" != xfalse; then @@ -327,6 +329,10 @@ if test "x$want_usbutils" != xfalse; then
if test "x$have_linux" = "xtrue"; then
PKG_CHECK_MODULES([UDEV], [libudev], LIBUSB_LIBS+=" -ludev", [AC_MSG_ERROR([Missing required libudev dev])])
fi
if test "x$have_darwin" = "xtrue"; then
LIBUSB_LIBS+=" -lobjc"
LDFLAGS+=" -framework CoreFoundation,IOKit"
fi
else
LIBUSB_LIBS=""
fi

Loading…
Cancel
Save