On Nov 28, 2007 10:47 AM, Kelly O'Hair <<a href="mailto:Kelly.Ohair@sun.com">Kelly.Ohair@sun.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>If your adventure is to figure out how to build 32bit on a 64bit system, please keep track<br>of what you had to do and we can document it, and have fun. ;^)<br></blockquote><div><br>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.
<br><br>Thanks,<br>-Ben<br><br>--------------------------------------------------------------------------<br><br>==== control/make/jprt.config ====<br>179c179,184<br>< linux_arch=amd64<br>---<br>> # LOCALPATCH
<br>> if [ "${ARCH_DATA_MODEL}" = 64 ] ; then<br>> linux_arch=amd64<br>> else<br>> linux_arch=i586<br>> fi<br>==== control/make/make/jprt.config ====<br>
179c179,184<br>< linux_arch=amd64<br>---<br>> # LOCALPATCH<br>> if [ "${ARCH_DATA_MODEL}" = 64 ] ; then<br>> linux_arch=amd64<br>> else<br>> linux_arch=i586
<br>> fi<br>==== corba/make/common/shared/Platform.gmk ====<br>217c217,219<br>< # i586 is 32-bit, amd64 is 64-bit<br>---<br>> # LOCALPATCH<br>> # i586 is 32-bit, amd64 is 64-bit, unless ARCH_DATA_MODEL is explicitly set
<br>> # as 32 and ARCH will be demoted to i586<br>223a226,230<br>> else<br>> ifeq ($(ARCH_DATA_MODEL), 32)<br>> ARCH=i586<br>> ARCH_FAMILY := $(ARCH)<br>> endif<br>==== jdk/make/common/shared/Platform.gmk ====
<br>226c226,228<br>< # i586 is 32-bit, amd64 is 64-bit<br>---<br>> # LOCALPATCH<br>> # i586 is 32-bit, amd64 is 64-bit, unless ARCH_DATA_MODEL is explicitly set<br>> # as 32 and ARCH will be demoted to i586
<br>232a235,239<br>> else<br>> ifeq ($(ARCH_DATA_MODEL), 32)<br>> ARCH=i586<br>> ARCH_FAMILY := $(ARCH)<br>> endif<br><br><br></div></div><br>