X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-util.git;a=blobdiff_plain;f=cross-compile%2Fmingw%2Flibusb1_upgrade.patch;fp=cross-compile%2Fmingw%2Flibusb1_upgrade.patch;h=a200b80a61e4ca3c5720213b53d9bc5a05b0dc65;hp=ac350c336955f2661bc8b0631e3b66761aebbfd7;hb=6056da9c47bf6d40a7956aeb0d6b25d3b90f410c;hpb=ca121a83b883db5547108740b875d87a9ad4c92a diff --git a/cross-compile/mingw/libusb1_upgrade.patch b/cross-compile/mingw/libusb1_upgrade.patch index ac350c3..a200b80 100644 --- a/cross-compile/mingw/libusb1_upgrade.patch +++ b/cross-compile/mingw/libusb1_upgrade.patch @@ -21,6 +21,27 @@ Regardless of which libusb1 version ships with mainline MXE. That is why this file is called "libusb1_upgrade.patch". Until then it patches the local archive of the older library version. + +Explicitly prepare autotools use between checkout and configuration. + +diff --git a/src/libusb1.mk b/src/libusb1.mk +index ab01bf69..53aed36e 100644 +--- a/src/libusb1.mk ++++ b/src/libusb1.mk +@@ -19,7 +19,7 @@ define $(PKG)_UPDATE + endef + + define $(PKG)_BUILD +- cd '$(1)' && ./configure \ ++ cd '$(1)' && autoreconf -i && ./configure \ + $(MXE_CONFIGURE_OPTS) \ + CFLAGS=-D_WIN32_WINNT=0x0500 + $(MAKE) -C '$(1)' -j '$(JOBS)' install + + +Don't use MXE's provided 1.0.24 version. Use an "event abstraction" +enabled older version instead. + diff --git a/src/libusb1.mk b/src/libusb1.mk index ab01bf69..53aed36e 100644 --- a/src/libusb1.mk @@ -42,15 +63,10 @@ index ab01bf69..53aed36e 100644 $(PKG)_DEPS := cc define $(PKG)_UPDATE -@@ -19,7 +19,7 @@ define $(PKG)_UPDATE - endef - - define $(PKG)_BUILD -- cd '$(1)' && ./configure \ -+ cd '$(1)' && autoreconf -i && ./configure \ - $(MXE_CONFIGURE_OPTS) \ - CFLAGS=-D_WIN32_WINNT=0x0500 - $(MAKE) -C '$(1)' -j '$(JOBS)' install + + +Unconditionally enable RAW_IO policy to improve performance on Windows. + diff --git a/src/libusb1-1-fixes.patch b/src/libusb1-1-fixes.patch new file mode 100644 index 00000000..6cdeb0c4