[foreign] does static forwarder generation has to depend on -l presence?

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu May 2 10:50:43 UTC 2019


Hi,
as I was playing with some stdlib examples, I noted that jextract was 
not generating any static forwarder for me. I was then reminded that 
static forwarders are only emitted if some library is passed via the -l 
option.

Is this too strict? After all, we have a 'default' Library that we can 
use as resolution context, which will pick up anything loaded by the VM 
(which also includes things in paths specified in sys variables like 
LD_LIBRARY_PATH). So, would it make sense to relax static forwarder 
generation so that, in the absence of -l, it will just use the default 
library?

That would improve usability in certain cases.

Maurizio



More information about the panama-dev mailing list