From a5fa2ecb0b5dbe9158eb4c4829ad3e79140643ea Mon Sep 17 00:00:00 2001 From: Rocky Breslow <1774125+rbreslow@users.noreply.github.com> Date: Tue, 10 Jan 2023 21:35:56 -0500 Subject: [PATCH] modules/hotp-verification: source libusb headers from Makefile DESTDIR Before, the configure script sourced these from the system FHS (/usr/include/libusb-1.0). The build failed on my NixOS build machine, which doesn't store dependencies in a traditional FHS. And this is the correct approach for reproducible builds. --- modules/hotp-verification | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hotp-verification b/modules/hotp-verification index 59228352..73ab140d 100644 --- a/modules/hotp-verification +++ b/modules/hotp-verification @@ -19,7 +19,7 @@ hotp-verification_output := \ hotp-verification_configure := \ INSTALL="$(INSTALL)" \ CROSS="$(CROSS)" \ - $(CROSS_TOOLS) $(MAKE) LDFLAGS="$(INSTALL)/lib/libusb-1.0.so" GITVERSION="" LIBUSB_FLAGS="-I/usr/include/libusb-1.0" PKGCONFIG="" && $(MAKE) install INSTALL="$(INSTALL)" + $(CROSS_TOOLS) $(MAKE) LDFLAGS="$(INSTALL)/lib/libusb-1.0.so" GITVERSION="" LIBUSB_FLAGS="-I$(INSTALL)/include/libusb-1.0" PKGCONFIG="" && $(MAKE) install INSTALL="$(INSTALL)" hotp-verification_depends += hidapi modules-y += hidapi