When statically link a set of JDK native libraries and libjvm with the launcher executable (see JDK-8303796 for more details), the linker reports failure due to multiple definitions of 'jvm' symbols, e.g.:
.../libmanagement_ext.a(management_ext.o):(.bss.jvm+0x0): multiple definition of `jvm'; /.../lib/libawt.a(awt_LoadLibrary.o):(.bss.jvm+0x0): first defined here
.../libmanagement_ext.a(management_ext.o):(.bss.jvm+0x0): multiple definition of `jvm'; /.../lib/libawt.a(awt_LoadLibrary.o):(.bss.jvm+0x0): first defined here
- relates to
-
JDK-8303796 Optionally build fully statically linked JDK image
- Open