JDK-8257895 : Allow building of JavaFX media libs for Apple Silicon
Type:Enhancement
Component:javafx
Sub-Component:media
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2020-12-08
Updated:2021-07-07
Resolved:2021-03-15
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
[~jvos] How did you configured libffi to get fficonfig.h? I run "sh configure", but getting slightly different values.
18-02-2021
I used the files from upstream https://github.com/libffi/libffi that are under src/aarch64 and I updated the other src files as well. I do recommend a sync from upstream to make sure we have all changes.
I had to reorganise the files, since e.g. ffitarget.h is different for x86_64 versus aarch64.
Also, I noticed formatting changes: the OpenJFX files didn't have the tabs that are in the original files, hence I assume that there is some post-processing happening.
16-02-2021
The above PR includes changes from the libffi master. We need to check whether it includes all commits since the 3.3. release (which is still the most current release), or whether selected fixes were cherry-picked. We will then need to test this on all platforms, since shared code was touched.
16-02-2021
Johan has created a WIP PR that can be used as a starting point for this:
https://github.com/openjdk/jfx/pull/402