From 20383289275b5e070e534b99c4e094dfa3033e03 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 13 Feb 2017 03:31:18 -0800 Subject: [PATCH] Fix grpc (was broken for 3 months on linuxbrew) --- Formula/grpc.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Formula/grpc.rb b/Formula/grpc.rb index bacc856..278cd8b 100644 --- a/Formula/grpc.rb +++ b/Formula/grpc.rb @@ -11,7 +11,7 @@ class Grpc < Formula depends_on "openssl" depends_on "pkg-config" => :build - depends_on "google-protobuf" + depends_on "protobuf" option "with-plugins", "Also install gRPC protoc plugins." @@ -25,7 +25,12 @@ def install # TODO(mxyan): find a better solution system "[ \"$(ls -A third_party/nanopb)\" ] || git clone --branch=nanopb-0.3.5 https://github.com/nanopb/nanopb.git third_party/nanopb" - system "make", "install", "prefix=#{prefix}" + if OS.linux? + # http://www.linuxquestions.org/questions/programming-9/usr-bin-ld-failed-to-set-dynamic-section-sizes-file-truncated-4175553982/ + system "make", "-j1", "install", "prefix=#{prefix}" + else + system "make", "install", "prefix=#{prefix}" + end if build.with? "plugins" system "make", "install-plugins", "prefix=#{prefix}"