libffi: fix test to not use pkg-config.

There's no pkg-config dependency so let's not use it in the test.
This commit is contained in:
Mike McQuaid 2014-02-22 12:13:52 +00:00
parent e993e896e8
commit 981c85a383

View file

@ -66,9 +66,8 @@ class Libffi < Formula
}
TEST_SCRIPT
ENV['PKG_CONFIG_PATH'] = "#{opt_prefix}/lib/pkgconfig"
flags = `pkg-config --cflags --libs libffi`.split + ENV.cflags.split
system ENV.cc, "-o", "closure", "closure.c", *flags
flags = ["-L#{lib}", "-lffi", "-I#{lib}/libffi-#{version}/include"]
system ENV.cc, "-o", "closure", "closure.c", *(flags + ENV.cflags.split)
system "./closure"
end
end