Skip to content

Commit 9e703ae

Browse files
committed
libquantum: add explicit --build flag for linux arm build
Signed-off-by: Rui Chen <[email protected]>
1 parent 4f7f8ef commit 9e703ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Formula/lib/libquantum.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ class Libquantum < Formula
2727
end
2828

2929
def install
30-
system "./configure", "--prefix=#{prefix}"
30+
args = []
31+
# Help old config scripts identify arm64 linux
32+
args << "--build=aarch64-unknown-linux-gnu" if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
33+
34+
system "./configure", *args, *std_configure_args
3135
system "make", "install"
3236
end
3337

0 commit comments

Comments
 (0)