I need to set LD_LIBRARY_PATH for an application using native DLLs. The reason is that I need to import two native DLLs, one depending on the other. JVM's -Djava.library.path only works for resolving the first library, but it's dependency is resolved using the dynamic loader policy, which is given by LD_LIBRARY_PATH. I use fork in test := true and fork in run := true. I use javaOptions ++= Seq(s"-Djava.library.path=...").
How do I set LD_LIBRARY_PATH? Meta-question: how do I navigate sbt APIs so I can learn how to set LD_LIBRARY_PATH on my own?