Fixed building with libusb not dynamicaly loaded

This commit is contained in:
Sam Lantinga
2022-09-01 11:30:02 -07:00
parent 7708bf0f8a
commit 3f89d1704d
6 changed files with 77 additions and 32 deletions
+1
View File
@@ -3581,6 +3581,7 @@ CheckHIDAPI()
if test x$hidapi_support = xyes; then
if test x$have_libusb_h = xyes; then
AC_DEFINE(HAVE_LIBUSB)
EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
if test x$require_hidapi_libusb = xyes; then
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"