From 60601399ff89e4a732669fe0d0da91a8f49ac206 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 13 Mar 2013 22:38:07 -0500 Subject: [PATCH] libffi: simplify test execution --- Formula/libffi.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Formula/libffi.rb b/Formula/libffi.rb index fa85648307..745540dce7 100644 --- a/Formula/libffi.rb +++ b/Formula/libffi.rb @@ -67,11 +67,8 @@ class Libffi < Formula } TEST_SCRIPT - cellar = `brew --prefix libffi`.chomp - ENV['PKG_CONFIG_PATH'] = "#{cellar}/lib/pkgconfig/" - flags = *`pkg-config --cflags --libs libffi`.split - flags += ENV.cflags.split - ohai flags + 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 system "./closure" end