aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/e2fsprogs.rb
diff options
context:
space:
mode:
authorWill Ross2012-04-18 03:03:16 -0400
committerAdam Vandenberg2012-04-18 19:03:26 -0700
commit0e1700210320e1ba18eaef5c518cf532bbb814e6 (patch)
treefb88984eeea1841ab6bb81a12d9133baef5cbedb /Library/Formula/e2fsprogs.rb
parentbf3dfa998dc20834f60f281cbc8a7a48f88a3976 (diff)
downloadhomebrew-0e1700210320e1ba18eaef5c518cf532bbb814e6.tar.bz2
e2fsprogs: fix compilation under Lion w/ clang
Fix derived from Macports issue 91359: https://trac.macports.org/changeset/91359 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/e2fsprogs.rb')
-rw-r--r--Library/Formula/e2fsprogs.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/e2fsprogs.rb b/Library/Formula/e2fsprogs.rb
index b7c74ab9b..bde7085b2 100644
--- a/Library/Formula/e2fsprogs.rb
+++ b/Library/Formula/e2fsprogs.rb
@@ -9,6 +9,7 @@ class E2fsprogs < Formula
keg_only "This brew installs several commands which override OS X-provided file system commands."
def install
+ ENV.append_to_cflags "--std=gnu89 -Wno-return-type" if ENV.compiler == :clang
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"