geos: fix for ARM (#65444)
parent
5097198161
commit
cf821a26a7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue