geos: fix for ARM (#65444)

master
Mehran Meidani 2020-12-06 15:41:18 -05:00 committed by GitHub
parent 5097198161
commit cf821a26a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -27,11 +27,15 @@ class Geos < Formula
s.gsub! /PYTHON_CPPFLAGS=.*/, %Q(PYTHON_CPPFLAGS="#{`python3-config --includes`.strip}")
s.gsub! /PYTHON_LDFLAGS=.*/, 'PYTHON_LDFLAGS="-Wl,-undefined,dynamic_lookup"'
end
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--enable-python
PYTHON=#{Formula["python@3.9"].opt_bin}/python3
]
args << "--disable-inline" if Hardware::CPU.arm?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-python",
"PYTHON=#{Formula["python@3.9"].opt_bin}/python3"
system "./configure", *args
system "make", "install"
end