aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorsamueljohn2012-07-13 11:39:25 +0200
committerAdam Vandenberg2012-07-23 07:25:14 -0700
commit39b5c85fcaac2582789c95c00e4ace4d41778615 (patch)
tree928fbcd6194ccefb5483ec48e0ab740e9d42cc41 /Library/Formula
parentcd4b5ae951f387de3891f6735fcc1076f4bccd41 (diff)
downloadhomebrew-39b5c85fcaac2582789c95c00e4ace4d41778615.tar.bz2
glib: test needs CFLAGS, too
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/glib.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/glib.rb b/Library/Formula/glib.rb
index 1a169af3c..a94189d1b 100644
--- a/Library/Formula/glib.rb
+++ b/Library/Formula/glib.rb
@@ -103,8 +103,9 @@ class Glib < Formula
return (strcmp(str, result_2) == 0) ? 0 : 1;
}
EOS
- system ENV.cc, "-o", "test", "test.c",
- *`pkg-config --cflags --libs glib-2.0`.split
+ flags = *`pkg-config --cflags --libs glib-2.0`.split
+ flags += ENV.cflags.split
+ system ENV.cc, "-o", "test", "test.c", *flags
system "./test"
end
end