mongodb: fix compilation with openssl

Closes Homebrew/homebrew#46839.
Closes Homebrew/homebrew#46870.
Closes Homebrew/homebrew#46893.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Rafael Viotti 2015-12-10 22:54:41 -02:00 committed by Dominyk Tiller
parent 1e2c6c71f5
commit 24affe095c

View file

@ -73,7 +73,10 @@ class Mongodb < Formula
args << "--disable-warnings-as-errors" if MacOS.version >= :yosemite
if build.with? "openssl"
args << "--ssl" << "--extrapath=#{Formula["openssl"].opt_prefix}"
args << "--ssl"
args << "CCFLAGS=-I#{Formula["openssl"].opt_prefix}/include"
args << "LINKFLAGS=-L#{Formula["openssl"].opt_prefix}/lib"
end
scons "install", *args