aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/freetds.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Formula/freetds.rb b/Library/Formula/freetds.rb
index acc46ff7b..e6b161342 100644
--- a/Library/Formula/freetds.rb
+++ b/Library/Formula/freetds.rb
@@ -20,15 +20,17 @@ class Freetds < Formula
depends_on "pkg-config" => :build
depends_on "unixodbc" => :optional
+ depends_on "openssl"
def install
system "autoreconf -i" if build.head?
- args = %W[--prefix=#{prefix}
- --with-openssl=#{MacOS.sdk_path}/usr
- --with-tdsver=7.1
- --mandir=#{man}
- ]
+ args = %W[
+ --prefix=#{prefix}
+ --with-openssl=#{Formula["openssl"].opt_prefix}"
+ --with-tdsver=7.1
+ --mandir=#{man}
+ ]
if build.with? "unixodbc"
args << "--with-unixodbc=#{Formula['unixodbc'].prefix}"