Skip to content

Commit 9d6d0c2

Browse files
carlocabBrewTestBot
authored andcommitted
ecl: use libffi from macos
Closes Homebrew#107650. Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
1 parent cbee80e commit 9d6d0c2

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Formula/ecl.rb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,25 @@ class Ecl < Formula
3232
depends_on "texinfo" => :build # Apple's is too old
3333
depends_on "bdw-gc"
3434
depends_on "gmp"
35-
depends_on "libffi"
35+
uses_from_macos "libffi", since: :catalina
3636

3737
def install
3838
ENV.deparallelize
3939

4040
# Avoid -flat_namespace usage on macOS
4141
inreplace "src/configure", "-flat_namespace -undefined suppress ", "" if OS.mac?
4242

43+
libffi_prefix = if MacOS.version >= :catalina
44+
MacOS.sdk_path
45+
else
46+
Formula["libffi"].opt_prefix
47+
end
4348
system "./configure", "--prefix=#{prefix}",
4449
"--enable-threads=yes",
4550
"--enable-boehm=system",
4651
"--enable-gmp=system",
4752
"--with-gmp-prefix=#{Formula["gmp"].opt_prefix}",
48-
"--with-libffi-prefix=#{Formula["libffi"].opt_prefix}",
53+
"--with-libffi-prefix=#{libffi_prefix}",
4954
"--with-libgc-prefix=#{Formula["bdw-gc"].opt_prefix}"
5055
system "make"
5156
system "make", "install"
@@ -91,7 +96,7 @@ def install
9196
@@ -181,10 +181,30 @@
9297
(defun wt-temp (temp)
9398
(wt "T" temp))
94-
99+
95100
+(defun wt-fixnum (value &optional vv)
96101
+ (declare (ignore vv))
97102
+ (princ value *compiler-output1*)
@@ -113,7 +118,7 @@ def install
113118
(defun wt-number (value &optional vv)
114119
+ (declare (ignore vv))
115120
(wt value))
116-
121+
117122
(defun wt-character (value &optional vv)
118123
+ (declare (ignore vv))
119124
;; We do not use the '...' format because this creates objects of type
@@ -124,7 +129,7 @@ def install
124129
--- a/src/cmp/cmptables.lsp
125130
+++ b/src/cmp/cmptables.lsp
126131
@@ -182,7 +182,7 @@
127-
132+
128133
(temp . wt-temp)
129134
(lcl . wt-lcl-loc)
130135
- (fixnum-value . wt-number)

0 commit comments

Comments
 (0)