[PATCH] Allow compiling 32-bit JDK on 64-bit host
Mladen Turk
mturk at redhat.com
Wed Mar 30 06:53:16 PDT 2011
On 03/30/2011 03:44 PM, Dr Andrew John Hughes wrote:
>
> In the patch, the x86 changes seem obvious, but why are you changing sparc?
>
This is just simplification.
They are set in the 'ifeq ($(ARCH_DATA_MODEL), 64)'
part instead repeating for each arch the same things.
>> -CFLAGS_REQUIRED_sparcv9 += -m64 -mcpu=v9
>> +CFLAGS_REQUIRED_sparcv9 += -mcpu=v9
>> + ifeq ($(ARCH_DATA_MODEL), 64)
>> + CFLAGS_REQUIRED = -m64 $(CFLAGS_REQUIRED_$(ARCH))
>> + LDFLAGS_COMMON += -m64 $(LDFLAGS_COMMON_$(ARCH))
>> + else
>> + CFLAGS_REQUIRED = -m32 $(CFLAGS_REQUIRED_$(ARCH))
>> + LDFLAGS_COMMON += -m32 $(LDFLAGS_COMMON_$(ARCH))
>> + endif
This results in the same thing without the need to
duplicate for each $(ARCH)
Regards
--
^TM
More information about the distro-pkg-dev
mailing list