Fork me on GitHub
#graalvm
<
2023-12-20
>
Jakub16:12:04

I have a challenge compiling a 3rd party clojure code to native image, which inside (def)s (that are build-time initialized) references classes with dynamically linked native JNI methods (which need to be run-time initialized). I wonder if there is a way to solve it without rewriting the original code. Would linking the JNI libraries statically help? According to this https://www.blog.akhil.cc/static-jni it should be possible, but it looks a bit shaky. Has anyone ever tried to make it work?

borkdude17:12:27

which lib is that?