On Mon, Apr 20, 2009 at 12:39:39PM +0300, Eduard - Gabriel Munteanu wrote:
> This allows Jato to be built on x86-64 as a 32-bit executable:
>
> $ make ARCH=i386
>
> One might also have to supply a suitable LIBS so the linker can locate
> the various binutils 32-bit libraries.
>
> Signed-off-by: Eduard - Gabriel Munteanu <[email protected]>
> ---
> Makefile | 43 ++++++++++++++++++++++++++++---------------
> monoburg/Makefile | 18 +++++++++---------
> scripts/build/test.mk | 10 +++++-----
> test/arch-x86/Makefile | 6 +++---
> 4 files changed, 45 insertions(+), 32 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 96bf4c2..340b8f2 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -6,13 +6,24 @@ CLASSPATH_INSTALL_DIR ?= $(shell
> ./tools/classpath-config)
> GLIBJ = $(CLASSPATH_INSTALL_DIR)/share/classpath/glibj.zip
> BOOTCLASSPATH = lib/classes.zip:$(GLIBJ)
>
> -JAMVM_ARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e
> s/ppc/powerpc/)
> -ARCH := $(shell uname -m | sed -e s/i.86/i386/)
> +BUILD_ARCH := $(shell uname -m | sed -e s/i.86/i386/)
> +ARCH := $(BUILD_ARCH)
> +JAMVM_ARCH := $(shell echo "$(ARCH)" | sed -e s/ppc/powerpc/)
> OS := $(shell uname -s | tr "[:upper:]" "[:lower:]")
I hope this does it. I suspect there's some sort of portability issue
with '<<<' redirection, though it worked for me on this Gentoo using
make-3.81 and bash-3.2_p33.
As for using it, I needed to compile a 32-bit binutils and add proper
LIBS '-L' flags to the command-line as well. You can get such a binutils
by compiling it with '-m32' among CFLAGS.
Cheers,
Eduard
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel