From 7447e3ee81b0be4963c18ab58989413a0b553f1c Mon Sep 17 00:00:00 2001 From: Jeroen Date: Tue, 17 Oct 2017 15:53:17 -0700 Subject: [PATCH] gmp: fix static library via --disable-assembly Fixes #19407. Closes #19571. Signed-off-by: ilovezfs --- Formula/gmp.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Formula/gmp.rb b/Formula/gmp.rb index 55379c39f2..9f991ac6f2 100644 --- a/Formula/gmp.rb +++ b/Formula/gmp.rb @@ -4,6 +4,7 @@ class Gmp < Formula url "https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz" mirror "https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.xz" sha256 "87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912" + revision 1 bottle do cellar :any @@ -20,10 +21,14 @@ class Gmp < Formula ENV.cxx11 if build.cxx11? args = %W[--prefix=#{prefix} --enable-cxx] args << "--build=core2-apple-darwin#{`uname -r`.to_i}" if build.bottle? - system "./configure", *args + system "./configure", "--disable-static", *args system "make" system "make", "check" system "make", "install" + system "make", "clean" + system "./configure", "--disable-shared", "--disable-assembly", *args + system "make" + lib.install Dir[".libs/*.a"] end test do