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

Loading…
Cancel
Save