aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-11-09 20:39:43 -0600
committerJack Nagel2013-11-09 20:39:43 -0600
commit4d153e6c095ebbc156a527c41c36ee15b891cb93 (patch)
tree3114ab2dd5a2803ea4056fe86bb62fe7226a3678 /Library/Formula
parentb247fbe5e2e39c5a131d6a3931b1756c4ff92b3a (diff)
downloadhomebrew-4d153e6c095ebbc156a527c41c36ee15b891cb93.tar.bz2
ushare: fix build with clang
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ushare.rb16
1 files changed, 4 insertions, 12 deletions
diff --git a/Library/Formula/ushare.rb b/Library/Formula/ushare.rb
index 05baecfb9..45c0d8c49 100644
--- a/Library/Formula/ushare.rb
+++ b/Library/Formula/ushare.rb
@@ -10,20 +10,12 @@ class Ushare < Formula
depends_on 'libupnp'
depends_on 'libdlna'
- # Correct "OPTFLAGS" to "CFLAGS"
- def patches
- { :p0 =>
- "https://trac.macports.org/export/89267/trunk/dports/net/ushare/files/patch-configure.diff",
- :p1 => DATA,
- }
- end
-
- fails_with :clang do
- cause "clang removes inline functions, causing a link error:\n" +
- "\"_display_headers\", referenced from: _parse_command_line in cfgparser.o"
- end
+ # Fix compilation with newer libupnp
+ def patches; DATA; end
def install
+ ENV.append 'CFLAGS', '-std=gnu89'
+
# Need to explicitly add intl and gettext here.
gettext = Formula.factory("gettext")
ENV.append 'CFLAGS', "-I#{gettext.include}"