Skip to content

Commit 63cbe3d

Browse files
committed
corrected linker for libusb
1 parent 9e42908 commit 63cbe3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if test "$disable_libusb_1_0" = "no"; then
2727
PKG_CHECK_MODULES(LIBUSB_1_0, [ libusb-1.0 >= 1.0.0 ], have_libusb_1_0=yes, have_libusb_1_0=no)
2828
if test "$have_libusb_1_0" = "yes"; then
2929
CFLAGS="$CFLAGS $LIBUSB_1_0_CFLAGS"
30-
LDFLAGS="$LDFLAGS $LIBUSB_1_0_LIBS"
30+
LIBS="$LIBS $LIBUSB_1_0_LIBS"
3131
HAVE_USB=yes
3232
fi
3333
fi
@@ -37,7 +37,7 @@ if test "$have_libusb_1_0" = "no"; then
3737
dnl libusb >= 0.1.8 is required, as we need usb_interrupt_read()
3838
AC_CHECK_HEADER(usb.h,
3939
AC_CHECK_LIB(usb, usb_interrupt_read,
40-
[LDFLAGS="$LDFLAGS -lusb"
40+
[LIBS="$LIBS -lusb"
4141
HAVE_USB=yes]))
4242
fi
4343

0 commit comments

Comments
 (0)