Skip to content

Commit bb6ebb5

Browse files
committed
gaul: add explicit --build flag for linux arm build
Signed-off-by: Rui Chen <[email protected]>
1 parent 18acb19 commit bb6ebb5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Formula/g/gaul.rb

+7-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ def install
3333
# Run autoreconf on macOS to rebuild configure script so that it doesn't try
3434
# to build with a flat namespace.
3535
system "autoreconf", "--force", "--verbose", "--install" if OS.mac?
36-
system "./configure", "--disable-dependency-tracking",
37-
"--disable-debug",
38-
"--disable-g",
39-
"--prefix=#{prefix}"
36+
37+
args = ["--disable-g"]
38+
39+
# Help old config scripts identify arm64 linux
40+
args << "--build=aarch64-unknown-linux-gnu" if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
41+
42+
system "./configure", *args, *std_configure_args
4043
system "make", "install"
4144
end
4245
end

0 commit comments

Comments
 (0)