Skip to content

Commit 6ad510d

Browse files
committed
skymaker: fix build on arm64 linux
1 parent 32dd1f9 commit 6ad510d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Formula/s/skymaker.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ class Skymaker < Formula
3030
depends_on "fftw"
3131

3232
def install
33+
# Work around failure from GCC 10+ using default of `-fno-common`
34+
ENV.append_to_cflags "-fcommon" if OS.linux?
35+
36+
args = []
37+
# Help old config scripts identify arm64 linux
38+
args << "--build=aarch64-unknown-linux-gnu" if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
39+
3340
system "autoconf"
34-
system "./configure", "--disable-debug",
35-
"--disable-dependency-tracking",
36-
"--disable-silent-rules",
37-
"--prefix=#{prefix}"
41+
system "./configure", *args, *std_configure_args
3842
system "make"
3943
system "make", "install"
4044
end

0 commit comments

Comments
 (0)