diff options
| -rw-r--r-- | Library/Formula/pngcrush.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/pngcrush.rb b/Library/Formula/pngcrush.rb index 5e9819214..3d1325d1d 100644 --- a/Library/Formula/pngcrush.rb +++ b/Library/Formula/pngcrush.rb @@ -6,12 +6,10 @@ class Pngcrush < Formula md5 '9f29bd4bc05ae1415e5ad10241798794' def install - # use our CFLAGS, LDFLAGS, CC, and LD - inreplace 'Makefile' do |s| - s.remove_make_var! %w[CFLAGS LDFLAGS CC LD] - end - - system "make" + system "make", "CC=#{ENV.cc}", + "LD=#{ENV.cc}", + "CFLAGS=#{ENV.cflags}", + "LDFLAGS=#{ENV.ldflags}" bin.install 'pngcrush' end end |
