Cross-compiling SableVM on Gentoo (HOWTO and patches)

David Bélanger <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.devel
Message-ID <[email protected]>
Hi,

I tested my new cross-compiler toolchains on SableVM. :)

I was able to successfully cross-compile it.  I didn't not try though
to cross-compile the gtk-related libraries though.

This is a mini-HOWTO on how to cross-compile it on a Gentoo system.
http://www.sable.mcgill.ca/~dbelan2/crossdev/cross-compiling-sablevm.txt

See:
http://www.sable.mcgill.ca/~dbelan2/ebuilds/dev-java/sablevm-svn/files/
for patches used.

I had to do these modifications:
1) Modify the ltmain.sh.  Bug in libtool?  Without the modification,
   if lib found in $(libdir), it will be used... leading to the
   attempt of using of the native lib instead of the cross-compiled...
   autogen.sh is modified to copy ltmain.sh so it can be patched.
2) configure.ac: AC_FUNC_MALLOC says no to GNU libc malloc if
   cross-compiling...  So, I work around by not doing the test if
   cross-compiling.


David

---

David Bélanger
Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.