• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libusb/0001-parallel-make.patch
Jeroen RooversJeroen Roovers committed d9d0ba0d16809 Sep 2016
Raw file
Source viewDiff to previous
    $(AM_V_GEN)$(DLLTOOL) $(DLLTOOLFLAGS) --kill-at --input-def $(srcdir)/libusb-1.0.def --dllname $@ --output-lib .libs/$@.a
 
1
Fix parallel build
2
​
3
This patch is a partial backport of
4
https://github.com/libusb/libusb/commit/3dc781ce3ecd0315cfc0b4fdcef9e062990f289b
5
​
6
Signed-off-by: Jeroen Roovers <jer@airfi.aero>
7
​
8
--- a/configure.ac
9
+++ b/configure.ac
10
@@ -36,6 +36,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RU
11
 
12
 AC_PREREQ([2.50])
13
 AC_PROG_CC
14
+AC_PROG_CXX
15
 LT_INIT
16
 LT_LANG([Windows Resource])
17
 AC_C_INLINE
18
@@ -91,7 +92,6 @@ case $host in
19
    ;;
20
 *-haiku*)
21
    AC_MSG_RESULT([Haiku])
22
-   AC_CONFIG_SUBDIRS([libusb/os/haiku])
23
    backend="haiku"
24
    threads="posix"
25
    ;;
26
@@ -193,6 +193,7 @@ AM_CONDITIONAL(OS_HAIKU, test "x$backend
27
 AM_CONDITIONAL(THREADS_POSIX, test "x$threads" = xposix)
28
 AM_CONDITIONAL(CREATE_IMPORT_LIB, test "x$create_import_lib" = "xyes")
29
 AM_CONDITIONAL(USE_UDEV, test "x$enable_udev" = xyes)
30
+AM_CONDITIONAL(USE_USBDK, test "x$enable_usbdk" = xyes)
31
 if test "$threads" = posix; then
32
    AC_DEFINE(THREADS_POSIX, 1, [Use POSIX Threads])
33
 fi
34
--- a/libusb/Makefile.am
35
+++ b/libusb/Makefile.am
36
@@ -4,58 +4,66 @@ AUTOMAKE_OPTIONS = subdir-objects
37
 
38
 lib_LTLIBRARIES = libusb-1.0.la
39
 
40
-POSIX_POLL_SRC = os/poll_posix.c
41
-LINUX_USBFS_SRC = os/linux_usbfs.c
42
-DARWIN_USB_SRC = os/darwin_usb.c
43
+POSIX_POLL_SRC = os/poll_posix.h os/poll_posix.c
44
+POSIX_THREADS_SRC = os/threads_posix.h os/threads_posix.c
45
+WINDOWS_POLL_SRC = os/poll_windows.h os/poll_windows.c
46
+WINDOWS_THREADS_SRC = os/threads_windows.h os/threads_windows.c
47
+LINUX_USBFS_SRC = os/linux_usbfs.h os/linux_usbfs.c
48
+DARWIN_USB_SRC = os/darwin_usb.h os/darwin_usb.c
49
 OPENBSD_USB_SRC = os/openbsd_usb.c
50
 NETBSD_USB_SRC = os/netbsd_usb.c
51
-WINDOWS_USB_SRC = os/poll_windows.c os/windows_usb.c libusb-1.0.rc libusb-1.0.def
52
-WINCE_USB_SRC = os/wince_usb.c os/wince_usb.h
53
-
54
-DIST_SUBDIRS = 
55
-
56
-EXTRA_DIST = $(LINUX_USBFS_SRC) $(DARWIN_USB_SRC) $(OPENBSD_USB_SRC) \
57
-   $(NETBSD_USB_SRC) $(WINDOWS_USB_SRC) $(WINCE_USB_SRC) \
58
-   $(POSIX_POLL_SRC) \
59
-   os/threads_posix.c os/threads_windows.c \
60
+WINDOWS_COMMON_SRC = os/windows_nt_common.h os/windows_nt_common.c \
61
+                     os/windows_common.h libusb-1.0.rc libusb-1.0.def
62
+WINDOWS_USB_SRC = os/windows_winusb.h os/windows_winusb.c
63
+WINDOWS_USBDK_SRC = os/windows_usbdk.h os/windows_usbdk.c
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.