google / u2f-ref-code

U2F reference implementations
BSD 3-Clause "New" or "Revised" License
585 stars 182 forks source link

Honor external toolchain environment variables and use hidapi library if available #167

Closed vpalatin closed 6 years ago

vpalatin commented 6 years ago

If the compiler/CFLAGS were set in the environment, do not override them.

Signed-off-by: Vincent Palatin vpalatin@chromium.org

vpalatin commented 6 years ago

I have added a second patch to detect the presence of libhidapi with pkg-config and use it if available (rather than the local hidapi sources checkout)