diff options
| author | Jack Nagel | 2013-11-09 20:46:35 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-09 20:46:35 -0600 |
| commit | 6eb5e00ec9a00c761b0b7fc9a3ad7112cdae9576 (patch) | |
| tree | 7ba51d7a05f14348febfcfeca679fdcbb49dd214 /Library/Formula/librsync.rb | |
| parent | 4d153e6c095ebbc156a527c41c36ee15b891cb93 (diff) | |
| download | homebrew-6eb5e00ec9a00c761b0b7fc9a3ad7112cdae9576.tar.bz2 | |
librsync: fix build with clang
Diffstat (limited to 'Library/Formula/librsync.rb')
| -rw-r--r-- | Library/Formula/librsync.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/librsync.rb b/Library/Formula/librsync.rb index f9f88fc38..0acde38d8 100644 --- a/Library/Formula/librsync.rb +++ b/Library/Formula/librsync.rb @@ -9,17 +9,13 @@ class Librsync < Formula depends_on 'popt' - def patches - # fixes librsync doesn't correctly export inlined functions: - # http://trac.macports.org/ticket/31742 - # link to upstream bug report: - # http://sourceforge.net/tracker/?func=detail&aid=3464437&group_id=56125&atid=479439 - { :p0 => 'https://trac.macports.org/export/90437/trunk/dports/net/librsync/files/patch-delta.c.diff' } - end - def install ENV.universal_binary if build.universal? - system "./configure", "--disable-debug", "--disable-dependency-tracking", + + ENV.append 'CFLAGS', '-std=gnu89' + + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}", "--enable-shared" |
