* libffi 3.2.1 built on a PowerPC G3
@ 2015-09-14 11:53 Benoit RIVET
0 siblings, 0 replies; only message in thread
From: Benoit RIVET @ 2015-09-14 11:53 UTC (permalink / raw)
To: libffi-discuss
I just subscribed to the list, so I’m not able to answer directly to the message Ryan Schmidt sent about "libffi 3.2.1 on a PowerPC G3 Mac ».
I’ve been able to build libffi successfully on a G3 Mac after downloading libffi-3.2.1.tar.gz, modifying line 34 in src/powerpc/darwin.S and line 37 in src/powerpc/darwin_closure.S from
#define machine_choice MODE_CHOICE(ppc7400,ppc64)
to :
#define machine_choice MODE_CHOICE(ppc,ppc64)
Of course, this may break libffi on G4 Mac (where ppc7400 or ppc7450 may be expected). However, since I wanted to build on a G3 Mac, I did not bother to check what happens on G4 Mac with that change. After that, ./configure, make then make install installed libffi.6.dylib and libffi.dylib n /usr/local/lib and
lipo -info /usr/local/lib/libffi.6.dylib
gives :
Non fat file: /usr/local/lib/libffi.6.dylib is architecture: ppc750
I was then able to install the gobject-introspection port through macports via :
sudo port install gobject-introspection
which failed previously due to libffi with the message :
Library not loaded: /opt/local/lib/libffi.6.dylib
Referenced from: /opt/local/lib/libgio-2.0.0.dylib
Reason: no suitable image found. Did find:
/opt/local/lib/libffi.6.dylib: incompatible cpu-subtype
--
Benoît RIVET
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-14 11:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-14 11:53 libffi 3.2.1 built on a PowerPC G3 Benoit RIVET
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).