1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 08:05:40 +00:00
nixpkgs/pkgs/tools/security/gnupg/fix-libusb-include-path.patch
Kai Harries dace6a176d
gnupg: take libusb include path from pkg-config
This makes smartcards (like the Nitrokey)  usable again.
2016-10-23 09:00:08 +02:00

12 lines
497 B
Diff

--- a/configure
+++ b/configure
@@ -8872,7 +8872,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
$as_echo_n "checking libusb include dir... " >&6; }
usb_incdir_found="no"
- for _incdir in "" "/usr/include/libusb-1.0" "/usr/local/include/libusb-1.0"; do
+ for _incdir in "$($PKG_CONFIG --variable=includedir libusb-1.0)/libusb-1.0"; do
_libusb_save_cppflags=$CPPFLAGS
if test -n "${_incdir}"; then
CPPFLAGS="-I${_incdir} ${CPPFLAGS}"