Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

beecrypt: fix compiles on 64-bit systems

Closes #18889.
  • Loading branch information...
commit 18ac84aef577b7c2399bf9bcf78677e6075babc4 1 parent 74c9f9b
@adamv adamv authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 Library/Formula/beecrypt.rb
View
12 Library/Formula/beecrypt.rb
@@ -12,9 +12,19 @@ def patches
{ :p0 => DATA }
end
+ def darwin_major_version
+ # kern.osrelease: 11.4.2
+ full_version = `/usr/sbin/sysctl -n kern.osrelease`
+ full_version.split("\.")[0]
+ end
+
def install
ENV.remove_from_cflags /-march=\S*/
- system "./configure", "--prefix=#{prefix}", "--disable-openmp", "--without-java", "--without-python"
+ args = ["--prefix=#{prefix}", "--disable-openmp", "--without-java", "--without-python"]
+ if MacOS.prefer_64_bit?
+ args << "--build=x86_64-apple-darwin#{darwin_major_version}"
+ end
+ system "./configure", *args
system "make"
system "make check"
system "make install"
Please sign in to comment.
Something went wrong with that request. Please try again.