aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-02-22 12:48:41 +0000
committerMike McQuaid2014-02-22 12:48:41 +0000
commit847659d99f4c063ce8cf21d44a67405558876e80 (patch)
tree625e168c08bb6a2ac2d682f22684aa9e5afabc73 /Library/Formula
parentd2ab1ed011abf1db812ba4b77b83f3894b033d28 (diff)
downloadhomebrew-847659d99f4c063ce8cf21d44a67405558876e80.tar.bz2
glib: fix test to not use pkg-config.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/glib.rb4
1 files changed, 2 insertions, 2 deletions
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