hidapi: don’t use pkg-config in test.
parent
3009db57f9
commit
abe2e9b5b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue