Skip to content

Commit 81e349e

Browse files
committed
zssh: use std_configure_args, fix build with Xcode 15
1 parent d14d934 commit 81e349e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Formula/z/zssh.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,17 @@ class Zssh < Formula
3333
depends_on "lrzsz"
3434

3535
on_linux do
36-
depends_on "pkg-config" => :build
3736
depends_on "readline"
3837
end
3938

4039
def install
41-
system "autoreconf", "-fvi"
42-
system "./configure", "--disable-debug", "--disable-dependency-tracking",
43-
"--prefix=#{prefix}"
40+
# Workaround for Xcode 15
41+
ENV.append_to_cflags "-Wno-incompatible-function-pointer-types" if DevelopmentTools.clang_build_version >= 1500
42+
43+
rm_r "lrzsz-0.12.20"
44+
45+
system "autoreconf", "--force", "--install", "--verbose"
46+
system "./configure", *std_configure_args
4447
system "make"
4548

4649
bin.install "zssh", "ztelnet"

0 commit comments

Comments
 (0)