Mobile JDK 9 Status
Bob Vandette
bob.vandette at oracle.com
Sat Jan 23 21:20:31 UTC 2016
> On Jan 23, 2016, at 2:49 PM, Ali Ebrahimi <ali.ebrahimi1781 at gmail.com> wrote:
>
> Hi Bob,
>
>
> On Sat, Jan 23, 2016 at 9:13 PM, Bob Vandette <bob.vandette at oracle.com <mailto:bob.vandette at oracle.com>> wrote:
>> I fix this by adding line for your bash script iOS x86_64:
>> export ASFLAGS='-miphoneos-version-min=8.0’
> Here is the fix that will be eventually pushed to the mobile/dev repo for this problem.
> Rather than adding ASFLAGS, we pass the EXTRA_CFLAGS to ASFLAGS. This allows
> the ios min version to get set in addition to other important options such as bitcode.
> Although assembler files can’t support bitcode, the binaries must be marked or you’ll get
> a link time failure.
>
> diff --git a/hotspot/make/bsd/makefiles/vm.make b/hotspot/make/bsd/makefiles/vm.make
> --- a/make/bsd/makefiles/vm.make
> +++ b/make/bsd/makefiles/vm.make
> @@ -118,6 +118,9 @@
> # Extra flags from gnumake's invocation or environment
> CFLAGS += $(EXTRA_CFLAGS)
> LFLAGS += $(EXTRA_CFLAGS)
It’s possibly a bug but it’s been this way for many releases.
If you look further down in this file, EXTRA_LDFLAGS is added to LIBS_VM.
Bob.
> May be an bug in current code. This line should not be this as
> LFLAGS += $(EXTRA_LFLAGS)
>
>
> +ifeq ($(OPENJDK_TARGET_OS), ios)
> +ASFLAGS += $(EXTRA_CFLAGS)
> +endif
> This worked for me.
>
> How about android support and its build instructions? I am eagerly waiting for android testing.
>
> --
>
> Best Regards,
> Ali Ebrahimi
More information about the mobile-dev
mailing list