From 847659d99f4c063ce8cf21d44a67405558876e80 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 22 Feb 2014 12:48:41 +0000 Subject: glib: fix test to not use pkg-config. --- Library/Formula/glib.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb index 222074b99..a6cb6170d 100644 --- a/Library/Formula/glib.rb +++ b/Library/Formula/glib.rb @@ -103,8 +103,8 @@ class Glib < Formula return (strcmp(str, result_2) == 0) ? 0 : 1; } EOS - flags = `pkg-config --cflags --libs glib-2.0`.split + ENV.cflags.split - system ENV.cc, "-o", "test", "test.c", *flags + flags = ["-I#{include}/glib-2.0", "-I#{lib}/glib-2.0/include", "-lglib-2.0"] + system ENV.cc, "-o", "test", "test.c", *(flags + ENV.cflags.split) system "./test" end end -- cgit v1.2.3