Skip to content

Commit 336d0d8

Browse files
author
Vladimir Kozlov
committed
8349926: [BACKOUT] Support static JDK in libfontmanager/freetypeScaler.c
Reviewed-by: jiangli, shade
1 parent 4b463ee commit 336d0d8

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

make/modules/java.desktop/lib/ClientLibraries.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ $(eval $(call SetupJdkLibrary, BUILD_LIBFONTMANAGER, \
407407
LDFLAGS_aix := -Wl$(COMMA)-berok, \
408408
JDK_LIBS := libawt java.base:libjava $(LIBFONTMANAGER_JDK_LIBS), \
409409
JDK_LIBS_macosx := libawt_lwawt, \
410-
JDK_LIBS_unix := java.base:libjvm, \
411410
LIBS := $(LIBFONTMANAGER_LIBS), \
412411
LIBS_unix := $(LIBM), \
413412
LIBS_macosx := \

src/java.desktop/share/native/libfontmanager/freetypeScaler.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <stdlib.h>
3333
#if !defined(_WIN32) && !defined(__APPLE_)
3434
#include <dlfcn.h>
35-
#include "jvm.h"
3635
#endif
3736
#include <math.h>
3837
#include "ft2build.h"
@@ -299,19 +298,6 @@ static void setInterpreterVersion(FT_Library library) {
299298
#if defined(_WIN32) || defined(__APPLE__)
300299
FT_Property_Set(library, module, property, (void*)(&version));
301300
#else
302-
303-
if (JVM_IsStaticallyLinked()) {
304-
// The bundled libfreetype may be statically linked with
305-
// the launcher.
306-
if (dlsym(RTLD_DEFAULT, "FT_Property_Set") != NULL) {
307-
FT_Property_Set(library, module, property, (void*)(&version));
308-
return;
309-
}
310-
311-
// libfreetype is not statically linked with the executable,
312-
// fall through to find the system provided library dynamically.
313-
}
314-
315301
void *lib = dlopen("libfreetype.so", RTLD_LOCAL|RTLD_LAZY);
316302
if (lib == NULL) {
317303
lib = dlopen("libfreetype.so.6", RTLD_LOCAL|RTLD_LAZY);

0 commit comments

Comments
 (0)