libdaemon: fix build on arm64 linux

Closes #120027.

Signed-off-by: Michka Popoff <3406519+iMichka@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Michael Cho 2023-01-07 13:00:14 -08:00 committed by BrewTestBot
parent c8fe0ad9d9
commit a989f6fc2c
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 5 additions and 2 deletions

View File

@ -31,8 +31,11 @@ class Libdaemon < Formula
end
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
args = ["--disable-silent-rules"]
# Help old config scripts identify arm64 linux
args << "--build=aarch64-unknown-linux-gnu" if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
system "./configure", *std_configure_args, *args
system "make", "install"
end
end