diff options
| author | Mike McQuaid | 2014-07-08 16:59:21 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-09 09:54:29 -0700 |
| commit | b8571a891ab55ae73f2c13a824f8a2d75cca08e8 (patch) | |
| tree | 402f726af237bf69ab00979f2daa5a9ad453db04 /Library | |
| parent | 16d38bb706cbe2677cfc03f69f9d9a9b60a13ecb (diff) | |
| download | homebrew-b8571a891ab55ae73f2c13a824f8a2d75cca08e8.tar.bz2 | |
leptonica: don’t use pkg-config in test.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/leptonica.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/leptonica.rb b/Library/Formula/leptonica.rb index 926111dab..7ddeb2240 100644 --- a/Library/Formula/leptonica.rb +++ b/Library/Formula/leptonica.rb @@ -45,7 +45,9 @@ class Leptonica < Formula return 0; } EOS - system ENV.cxx, "test.cpp", `pkg-config --cflags lept` + + flags = ["-I#{include}/leptonica"] + ENV.cflags.to_s.split + system ENV.cxx, "test.cpp", *flags assert_equal version.to_s, `./a.out` end end |
