Skip to content

Commit

Permalink
ncrack: fix build with xcode12
Browse files Browse the repository at this point in the history
Normal $CFLAGS workaround applies.

Also explicitly pointed configure at the right openssl library which
may help calm down some configure-time confusion.

Closes #66516.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
mitchblank authored and BrewTestBot committed Dec 9, 2020
1 parent cd6de33 commit 5b84736
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Formula/ncrack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Ncrack < Formula
homepage "https://nmap.org/ncrack/"
url "https://github.com/nmap/ncrack/archive/0.7.tar.gz"
sha256 "f3f971cd677c4a0c0668cb369002c581d305050b3b0411e18dd3cb9cc270d14a"
license "GPL-2.0"
license "GPL-2.0-only"
head "https://github.com/nmap/ncrack.git"

bottle do
Expand All @@ -16,8 +16,12 @@ class Ncrack < Formula
depends_on "openssl@1.1"

def install
# Work around configure issues with Xcode 12 (at least in the opensshlib component)
ENV.append "CFLAGS", "-Wno-implicit-function-declaration"

system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--with-openssl=#{Formula["openssl@1.1"].opt_prefix}",
"--prefix=#{prefix}"
system "make"
system "make", "install"
Expand Down

0 comments on commit 5b84736

Please sign in to comment.