diff options
Diffstat (limited to 'Library/Formula')
| -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 |
