aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-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