diff options
| author | Mike McQuaid | 2014-07-08 16:59:08 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-09 09:54:29 -0700 |
| commit | 16d38bb706cbe2677cfc03f69f9d9a9b60a13ecb (patch) | |
| tree | 69d6a5c8107ce47bc5ec271110bfe15f720e0179 /Library/Formula/hidapi.rb | |
| parent | e927e16c27fc67fe7c669ea3f1583522c46a0c72 (diff) | |
| download | homebrew-16d38bb706cbe2677cfc03f69f9d9a9b60a13ecb.tar.bz2 | |
hidapi: don’t use pkg-config in test.
Diffstat (limited to 'Library/Formula/hidapi.rb')
| -rw-r--r-- | Library/Formula/hidapi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/hidapi.rb b/Library/Formula/hidapi.rb index e97a739d9..3122abc28 100644 --- a/Library/Formula/hidapi.rb +++ b/Library/Formula/hidapi.rb @@ -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 |
