aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-11 13:18:16 -0700
committerAdam Vandenberg2012-03-11 13:18:16 -0700
commita57f6ff1ce7e3d234069cec62978c89c4a1fe247 (patch)
tree99e220750cb1f60dac042c6c0e5e64ec8b6fe86a
parent3a8141d71cfb6d6719165cd7392ef06b4158fc73 (diff)
downloadhomebrew-a57f6ff1ce7e3d234069cec62978c89c4a1fe247.tar.bz2
jam: set CC and CFLAGS on command-line
-rw-r--r--Library/Formula/jam.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/Library/Formula/jam.rb b/Library/Formula/jam.rb
index 345d6e777..88813c00b 100644
--- a/Library/Formula/jam.rb
+++ b/Library/Formula/jam.rb
@@ -6,14 +6,7 @@ class Jam < Formula
md5 'f92caadb62fe4cb0b152eff508c9d450'
def install
- # Why zip up as read-only?
- system "chmod a+w *"
-
- inreplace "Makefile" do |s|
- s.remove_make_var! ['CC', 'CFLAGS']
- end
-
- system "make"
+ system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
bin.install "bin.macosx/jam", "bin.macosx/mkjambase"
end
end