hidapi: don’t use pkg-config in test.

master
Mike McQuaid 2014-07-08 16:59:08 -07:00
parent 3009db57f9
commit abe2e9b5b7
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Hidapi < Formula
}
EOS
flags = `pkg-config --cflags --libs hidapi`.split + ENV.cflags.to_s.split
flags = ["-I#{include}/hidapi", "-L#{lib}", "-lhidapi"] + ENV.cflags.to_s.split
system ENV.cc, "-o", "test", "test.c", *flags
system './test'
end