Loading... (original) (raw)
When building OpenJDK on Macosx, we bundle the freetype library if specifically specified on the configure command line, but not if it's found on the system. But because of how the linking works, libfontmanager will always just look for freetype in /opt/X11/lib/libfreetype.6.so. To fix this, we need to patch libfontmanager.dylib to look in @rpath/libfreetype.dylib instead when bundling freetype.
Note that Oracle produced openjdk macos builds do not currently bundle freetype.