Skip to content

Commit 54146ef

Browse files
committed
Add the nio->net dependency.
1 parent 093d454 commit 54146ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/c/NativeLibraries.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@ public void addStaticJniLibrary(String library, String... dependencies) {
446446
List<String> allDeps = new ArrayList<>(Arrays.asList(dependencies));
447447
/* "jvm" is a basic dependence for static JNI libs */
448448
allDeps.add("jvm");
449+
if (library.equals("nio")) {
450+
/* "nio" implicitly depends on "net" */
451+
allDeps.add("net");
452+
}
449453
dependencyGraph.add(library, allDeps);
450454
}
451455

0 commit comments

Comments
 (0)