130-provide-proper-library-paths.patch 613 B

12345678910111213
  1. --- a/lib/Device/USB.pm
  2. +++ b/lib/Device/USB.pm
  3. @@ -8,8 +8,8 @@ use Carp;
  4. use Inline (
  5. C => "DATA",
  6. ($ENV{LIBUSB_LIBDIR}
  7. - ? ( LIBS => "-L\"$ENV{LIBUSB_LIBDIR}\" " .
  8. - ($^O eq 'MSWin32' ? ' -llibusb -L\"$ENV{WINDDK}\\lib\\crt\\i386\" -lmsvcrt ' : '-lusb-0.1') )
  9. + ? ( LIBS => "-L$ENV{LIBUSB_LIBDIR} " .
  10. + ($^O eq 'MSWin32' ? ' -llibusb -L$ENV{WINDDK}\\lib\\crt\\i386 -lmsvcrt ' : '-lusb-0.1') )
  11. : ( LIBS => '-lusb-0.1', )
  12. ),
  13. ($ENV{LIBUSB_INCDIR} ? ( INC => "-I\"$ENV{LIBUSB_INCDIR}\"" ) : () ),