From 9c6ef738f1692b7dea3bbc94f1117061a0b602bf Mon Sep 17 00:00:00 2001 From: Jethro Grassie Date: Tue, 12 Nov 2019 11:33:28 -0500 Subject: [PATCH] link libhidapi if required --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 4e15bb3..f043672 100644 --- a/Makefile +++ b/Makefile @@ -115,6 +115,12 @@ else boost_serialization boost_program_options endif +HID_FOUND := $(shell grep -qo HIDAPI_LIBRARY-NOTFOUND \ + ${MONERO_BUILD_ROOT}/CMakeCache.txt; echo $$?) +ifeq ($(HID_FOUND), 1) + LIBS += hidapi-libusb +endif + PKG_LIBS := $(shell pkg-config \ "libevent >= 2.1" \ json-c \