librsync: build shared library

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2011-10-17 14:37:31 -05:00
parent b37a10c91a
commit 5afd2e4c27

View file

@ -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