RFR: 8349859: Support static JDK in libfontmanager/freetypeScaler.c
Jiangli Zhou
jiangli at openjdk.org
Wed Feb 12 00:07:24 UTC 2025
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`.
-------------
Commit messages:
- Check if FT_Property_Set can be found from the executable if running on static JDK, before trying to load libfreetype.so.
Changes: https://git.openjdk.org/jdk/pull/23574/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23574&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8349859
Stats: 15 lines in 2 files changed: 15 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/23574.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23574/head:pull/23574
PR: https://git.openjdk.org/jdk/pull/23574
More information about the build-dev
mailing list