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:
parent
1e2c6c71f5
commit
24affe095c
1 changed files with 4 additions and 1 deletions
|
@ -73,7 +73,10 @@ class Mongodb < Formula
|
||||||
args << "--disable-warnings-as-errors" if MacOS.version >= :yosemite
|
args << "--disable-warnings-as-errors" if MacOS.version >= :yosemite
|
||||||
|
|
||||||
if build.with? "openssl"
|
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
|
end
|
||||||
|
|
||||||
scons "install", *args
|
scons "install", *args
|
||||||
|
|
Loading…
Reference in a new issue