aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tree.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/tree.rb')
-rw-r--r--Library/Formula/tree.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/tree.rb b/Library/Formula/tree.rb
index 7964a0184..982b4bb5a 100644
--- a/Library/Formula/tree.rb
+++ b/Library/Formula/tree.rb
@@ -6,7 +6,9 @@ class Tree <Formula
@md5='a7731a898e2c0d7e422a57a84ffbb06c'
def install
- system "gcc #{ENV['CFLAGS']} -o tree tree.c strverscmp.c"
+ gcc = ENV['CC'] || "gcc"
+ system "#{gcc} #{ENV['CFLAGS']} -o tree tree.c strverscmp.c"
+
bin.install "tree"
man1.install "man/tree.1"
end