aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/io.rb
diff options
context:
space:
mode:
authorMisty De Meo2014-05-11 12:14:31 -0700
committerMisty De Meo2014-05-11 12:18:42 -0700
commit65362145959f52db0ccf23060d4e85a73f3b019c (patch)
treeb8cde0ad97dbb907351e74af332154fb3f13241c /Library/Formula/io.rb
parent44a716b154efd8130300e9abfe78fa03fe8c5166 (diff)
downloadhomebrew-65362145959f52db0ccf23060d4e85a73f3b019c.tar.bz2
io: fix build with FSF/Apple GCC
Diffstat (limited to 'Library/Formula/io.rb')
-rw-r--r--Library/Formula/io.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/io.rb b/Library/Formula/io.rb
index 176c108d5..462347d84 100644
--- a/Library/Formula/io.rb
+++ b/Library/Formula/io.rb
@@ -38,9 +38,19 @@ class Io < Formula
EOS
end
+ # Fixes build on GCC with recursive inline functions;
+ # committed upstream, will be in the next release.
+ patch do
+ url "https://github.com/stevedekorte/io/commit/f21a10ca0e8959e2a0774962c36392cf166be6a6.diff"
+ sha1 "f8756e85268211e93dfd06a0eeade63bfb9bcc9c"
+ end
+
def install
ENV.j1
+ # FSF GCC needs this to build the ObjC bridge
+ ENV.append_to_cflags '-fobjc-exceptions'
+
if build.without? "addons"
# Turn off all add-ons in main cmake file
inreplace "CMakeLists.txt", "add_subdirectory(addons)",