1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 14:58:01 +00:00

Add flags for building libusb statically on osx.

This commit is contained in:
Con Kolivas 2013-09-13 16:58:52 +10:00
parent 27cd9a0a7e
commit fb2cf630f1

View File

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