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:
parent
e993e896e8
commit
981c85a383
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue