supersonic: fix build
Supersonic expects to be able to pick up all of its dependencies via pkg-config which is something of a problem as `gflags` no longer builds or ships .pc files and consequently, detection fails. Fixed by passing suggested ENVs instead. Closes Homebrew/homebrew#43083. Closes Homebrew/homebrew#43103. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
f9fc11a425
commit
061a29011f
1 changed files with 9 additions and 4 deletions
|
@ -17,15 +17,20 @@ class Supersonic < Formula
|
|||
depends_on "protobuf"
|
||||
depends_on "boost"
|
||||
end
|
||||
depends_on "glog"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "glog"
|
||||
|
||||
needs :cxx11
|
||||
|
||||
def install
|
||||
ENV.cxx11
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
|
||||
# gflags no longer supply .pc files; supersonic's compile expects them.
|
||||
ENV["GFLAGS_CFLAGS"] = "-I#{Formula["gflags"].opt_include}"
|
||||
ENV["GFLAGS_LIBS"] = "-L#{Formula["gflags"].opt_lib} -lgflags"
|
||||
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--without-re2"
|
||||
system "make", "clean"
|
||||
|
|
Loading…
Reference in a new issue