how to build 32-bit openjdk7 on x86_64
Ben Cheng
bccheng at google.com
Thu Dec 6 01:56:27 UTC 2007
On Nov 28, 2007 10:47 AM, Kelly O'Hair <Kelly.Ohair at sun.com> wrote:
>
> If your adventure is to figure out how to build 32bit on a 64bit system,
> please keep track
> of what you had to do and we can document it, and have fun. ;^)
>
I have a four-file patch that enables me to do 32-bit build on 64-bit linux
machines (where 32-bit libraries are installed) now. I don't need to specify
ARCH explicitly on the build command line. Instead, I rely on saying
ARCH_DATA_MODEL=32 to override the auto-detected ARCH value in several
makefiles.
Thanks,
-Ben
--------------------------------------------------------------------------
==== control/make/jprt.config ====
179c179,184
< linux_arch=amd64
---
> # LOCALPATCH
> if [ "${ARCH_DATA_MODEL}" = 64 ] ; then
> linux_arch=amd64
> else
> linux_arch=i586
> fi
==== control/make/make/jprt.config ====
179c179,184
< linux_arch=amd64
---
> # LOCALPATCH
> if [ "${ARCH_DATA_MODEL}" = 64 ] ; then
> linux_arch=amd64
> else
> linux_arch=i586
> fi
==== corba/make/common/shared/Platform.gmk ====
217c217,219
< # i586 is 32-bit, amd64 is 64-bit
---
> # LOCALPATCH
> # i586 is 32-bit, amd64 is 64-bit, unless ARCH_DATA_MODEL is
explicitly set
> # as 32 and ARCH will be demoted to i586
223a226,230
> else
> ifeq ($(ARCH_DATA_MODEL), 32)
> ARCH=i586
> ARCH_FAMILY := $(ARCH)
> endif
==== jdk/make/common/shared/Platform.gmk ====
226c226,228
< # i586 is 32-bit, amd64 is 64-bit
---
> # LOCALPATCH
> # i586 is 32-bit, amd64 is 64-bit, unless ARCH_DATA_MODEL is
explicitly set
> # as 32 and ARCH will be demoted to i586
232a235,239
> else
> ifeq ($(ARCH_DATA_MODEL), 32)
> ARCH=i586
> ARCH_FAMILY := $(ARCH)
> endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20071205/e17b4a36/attachment.htm>
More information about the build-dev
mailing list