Package: bladerf / 0.2017.12~rc1-2

try-hurd-build Patch series | download
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
From: A. Maitland Bottoms <bottoms@debian.org>
Subject: try hurd build

Debian builds on GNU hurd-i386.

--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -165,6 +165,8 @@
     )
 
     add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+elseif(${CMAKE_SYSTEM_NAME} MATCHES "GNU")
+    message(WARNING "Unsupported host operating system: ${CMAKE_SYSTEM_NAME}")
 else()
     message(FATAL_ERROR "Unsupported host operating system: ${CMAKE_SYSTEM_NAME}")
 endif()
--- a/host/cmake/modules/FindLibUSB.cmake
+++ b/host/cmake/modules/FindLibUSB.cmake
@@ -60,7 +60,7 @@
 
 find_package(PkgConfig)
 if(PKG_CONFIG_FOUND)
-    pkg_check_modules(PKGCONFIG_LIBUSB libusb-1.0 QUIET)
+    pkg_check_modules(PKGCONFIG_LIBUSB QUIET libusb-1.0 libusb)
 endif(PKG_CONFIG_FOUND)
 
 if(PKGCONFIG_LIBUSB_FOUND AND NOT LIBUSB_FOUND)