From 3b58ba37829ada40516deb16dd3ad9e9e52ac707 Mon Sep 17 00:00:00 2001 From: Devon Hollowood Date: Sun, 15 Oct 2017 07:23:11 -0300 Subject: [PATCH] cfitsio: add reentrant option (#19432) --- Formula/cfitsio.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Formula/cfitsio.rb b/Formula/cfitsio.rb index bbf8c193f1..2af89d293a 100644 --- a/Formula/cfitsio.rb +++ b/Formula/cfitsio.rb @@ -13,8 +13,12 @@ class Cfitsio < Formula sha256 "7681f60baee8d9a73639be3f54d7f4a1c71c9fc9f4ac7fd0e3ba20cb2a2c3c7b" => :el_capitan end + option "with-reentrant", "Build with support for concurrency" + def install - system "./configure", "--prefix=#{prefix}" + args = ["--prefix=#{prefix}"] + args << "--enable-reentrant" if build.with? "reentrant" + system "./configure", *args system "make", "shared" system "make", "install" (pkgshare/"testprog").install Dir["testprog*"]