Skip to content

Commit 1f029e1

Browse files
authored
Merge pull request #217265 from Homebrew/puf-linux-arm
puf: add explicit `--build` flag for linux arm build
2 parents f0c333c + da03512 commit 1f029e1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Formula/p/puf.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,15 @@ class Puf < Formula
2424
end
2525

2626
def install
27-
system "./configure", "--disable-debug", "--disable-dependency-tracking",
28-
"--prefix=#{prefix}",
29-
"--mandir=#{man}"
27+
args = []
28+
# Help old config scripts identify arm64 linux
29+
args << "--build=aarch64-unknown-linux-gnu" if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
30+
31+
system "./configure", "--mandir=#{man}", *args, *std_configure_args
3032
system "make", "install"
3133
end
34+
35+
test do
36+
system bin/"puf", "-r", "example.com"
37+
end
3238
end

0 commit comments

Comments
 (0)