diff mbox

[tegrarcm] configure.ac: Request at least libusb 1.0.9

Message ID 1428512112-15430-1-git-send-email-tklauser@distanz.ch
State Deferred
Headers show

Commit Message

Tobias Klauser April 8, 2015, 4:55 p.m. UTC
tegrarcm needs at least libusb 1.0.9 which introduces libusb_error_name.
Otherwise the build fails with the following linker error:

usb.o: In function `usb_read':
.../tegrarcm/src/usb.c:260: undefined reference to `libusb_error_name'
usb.o: In function `usb_write':
.../tegrarcm/src/usb.c:233: undefined reference to `libusb_error_name'

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Warren April 13, 2015, 4:04 p.m. UTC | #1
On 04/08/2015 10:55 AM, Tobias Klauser wrote:
> tegrarcm needs at least libusb 1.0.9 which introduces libusb_error_name.
> Otherwise the build fails with the following linker error:
>
> usb.o: In function `usb_read':
> .../tegrarcm/src/usb.c:260: undefined reference to `libusb_error_name'
> usb.o: In function `usb_write':
> .../tegrarcm/src/usb.c:233: undefined reference to `libusb_error_name'

I have applied this.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index c95a0ec..51ac73d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@  AC_CHECK_LIB([pthread],
 	[pthread_create],
 	[HAVE_PTHREAD=1],
 	[AC_MSG_ERROR([libpthread is not installed.])])
-PKG_CHECK_MODULES([LIBUSB], [libusb-1.0])
+PKG_CHECK_MODULES([LIBUSB], [libusb-1.0 >= 1.0.9])
 AC_LANG(C++)
 SAVED_LDFLAGS=$LDFLAGS
 LDFLAGS="$LDFLAGS -lcryptopp -lpthread"