aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/dfu-util/dfu-util/0001-configure.ac-Don-t-check-for-usbpath.patch
blob: bab4a71341ac7653fa72db10257e82ee33cf6320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From e1811274b61db0f5ca55c50ec96d799e2d85fa06 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Sun, 3 Aug 2014 17:50:06 +0200
Subject: [PATCH 1/2] configure.ac: Don't check for usbpath

* otherwise it fails to build with -lusb
  | main.o: In function `resolve_device_path':
  | dfu-util/0.7-r0/dfu-util-0.7/src/main.c:371: undefined reference to `usb_path2devnum'
  | collect2: error: ld returned 1 exit status

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 configure.ac | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8622114..a1dcc7a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,14 +20,13 @@ AS_IF([test x$native_libusb = xno], [
     PKG_CHECK_MODULES([USB], [libusb-1.0 >= 1.0.0],,
         AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
 ])
-AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
 
 LIBS="$LIBS $USB_LIBS"
 CFLAGS="$CFLAGS $USB_CFLAGS"
 
 # Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS([usbpath.h windows.h sysexits.h])
+AC_CHECK_HEADERS([windows.h sysexits.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
-- 
2.7.2