Skip to content

Commit

Permalink
sntop: workaround for newer Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
cho-m committed Sep 14, 2024
1 parent 105c916 commit 6a139e7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Formula/s/sntop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ class Sntop < Formula
uses_from_macos "ncurses"

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--sysconfdir=#{etc}"
# Workaround for newer Clang
ENV.append_to_cflags "-Wno-implicit-int" if DevelopmentTools.clang_build_version >= 1403

system "./configure", "--mandir=#{man}",
"--sysconfdir=#{etc}",
*std_configure_args
etc.mkpath
bin.mkpath
man1.mkpath
Expand Down

0 comments on commit 6a139e7

Please sign in to comment.