building statically linked java executables

Choe, Jiwon jiwon_choe at brown.edu
Tue Mar 31 20:02:17 UTC 2020


Hello,

I was wondering if it would be possible to compile/build so that the
generated j2sdk-image/bin executables are statically linked.
I run configure with the flag '--with-stdc++lib=static', but the executable
that I get is still dynamically linked.

$ file j2sdk-image/bin/java
j2sdk-image/bin/java: ELF 32-bit LSB  executable, ARM, EABI5 version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, .....

Has anyone tried building statically-linked executables from the source?

Thanks,
Jiwon


More information about the aarch32-port-dev mailing list