freetds.rb: Enable support for building with --universal

Closes #21309.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Marc Abramowitz authored and Adam Vandenberg committed 2013-07-18 14:11:02 -07:00
1 parent 370e2ac06f
commit d73f44c314
1 file changed
+3
+3
View File
@@ -15,6 +15,8 @@ class Freetds < Formula
depends_on :libtool
end
option :universal
def install
system "autoreconf -i" if build.head?
@@ -28,6 +30,7 @@ class Freetds < Formula
args << "--with-unixodbc=#{Formula.factory('unixodbc').prefix}"
end
ENV.universal_binary if build.universal?
system "./configure", *args
system 'make'
ENV.j1 # Or fails to install on multi-core machines