Skip to content

Commit

Permalink
modules/hotp-verification: source libusb headers from Makefile DESTDIR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rbreslow committed Jan 18, 2023
1 parent 395de88 commit a3e4a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hotp-verification
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3e4a34

Please sign in to comment.