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

master
Mike McQuaid 2014-07-08 16:59:21 -07:00
parent abe2e9b5b7
commit 345fb0de7d
1 changed files with 3 additions and 1 deletions

View File

@ -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