mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 18:44:17 +00:00
* configure.ac (AC_CHECK_LIB([usb]): implement a private LIBUSB
macro to add this library to, to prevent it from being automatically linked to all binaries. This should fix the Win32 build of loaddrv. * Makefile.am (avrdude_LDADD): add LIBUSB here. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@602 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -46,7 +46,10 @@ AC_CHECK_LIB([ncurses], [tputs])
|
||||
AC_CHECK_LIB([readline], [readline])
|
||||
# usb_get_string_simple is only available in recent enough
|
||||
# versions of libusb, so use that as a decision base.
|
||||
AC_CHECK_LIB([usb], [usb_get_string_simple])
|
||||
AC_CHECK_LIB([usb], [usb_get_string_simple],
|
||||
[LIBUSB=-lusb],
|
||||
[LIBUSB=])
|
||||
AC_SUBST(LIBUSB, $LIBUSB)
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
|
||||
Reference in New Issue
Block a user