librsync: build shared library
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
b37a10c91a
commit
5afd2e4c27
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue