aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/librsync.rb
diff options
context:
space:
mode:
authorJack Nagel2011-10-17 14:37:31 -0500
committerJack Nagel2011-10-17 14:37:31 -0500
commit6c8f7f440747fb4d98cb9efc06a8c6cec2bfa91b (patch)
treebcbda687272c49835ec2b253cc3b6fc9c0ac64eb /Library/Formula/librsync.rb
parentb0ada9ce7faa36a5495beaeccb8f6adce4922433 (diff)
downloadhomebrew-6c8f7f440747fb4d98cb9efc06a8c6cec2bfa91b.tar.bz2
librsync: build shared library
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/librsync.rb')
-rw-r--r--Library/Formula/librsync.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/librsync.rb b/Library/Formula/librsync.rb
index e89857376..531bbf906 100644
--- a/Library/Formula/librsync.rb
+++ b/Library/Formula/librsync.rb
@@ -9,7 +9,14 @@ class Librsync < Formula
ENV.universal_binary
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
- "--mandir=#{man}"
+ "--mandir=#{man}",
+ "--enable-shared"
+
+ inreplace 'libtool' do |s|
+ s.gsub! /compiler_flags=$/, "compiler_flags=' #{ENV.cflags}'"
+ s.gsub! /linker_flags=$/, "linker_flags=' #{ENV.ldflags}'"
+ end
+
system "make install"
end
end