RFR: 8349859: Support static JDK in libfontmanager/freetypeScaler.c
Mikael Vidstedt
mikael at openjdk.org
Wed Feb 12 18:44:14 UTC 2025
On Wed, 12 Feb 2025 00:02:22 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:
> Please review the change that looks up `FT_Property_Set` from the current executable first when running on static JDK. If `FT_Property_Set` can be found, don't `dlopen` `libfreetype.so`. If a bundled `libfreetype` is statically linked with the launcher executable (on static JDK), `FT_Property_Set` is provided in the current executable.
>
> According to the existing comment in `setInterpreterVersion`, `libfreetype` is always bundled on Windows & Mac. This change only applies to Linux.
>
> I tested the change by stepping through the code using `test/jdk/java/awt/font/JNICheck/FreeTypeScalerJNICheck.java`.
If it helps, the freetype headers/libraries we're using come from the "devkit", and on linux-x64 we're using an Oracle Linux 6.4 sysroot (see https://github.com/openjdk/jdk/blob/master/make/devkit/Tools.gmk#L62).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23574#issuecomment-2654557344
More information about the build-dev
mailing list