Ok, we made a build on our Solaris 8 - SunOS 5.8 box, and
after a few changes, we successfully obtained a jar file.
The interesting bit is that, in the end, that jar worked
successfully to locate and load libc.so.1
To reach that point, we had to make a few changes:
- the Makefile.in had to be modified to correctly reference where
libtool was stored
- some #define in native/libffi/src/sparc/v8.S where
problematic:
#ifdef SPARC64
#define WS 8
#define nword xword
#define uanword uaxword
#else
#define WS 4
#define nword long
#define uanword uaword
#endif
after the preprocessor ran, the few lines that showed
.nword
and
.uanword
ended up with: . long
and . uaword
with an extra space. Something the compiler didn't like. To make sure
it compiled, we just cheated and made the replacement that the pre-
processor
should have made.
Once this was done (and a few other changes in the Makefile to refer
to our local gcc),
we got our jar, which we could use.