From 05994c1ad06bd718f598d24a74c9e3e2b1b5e5bc Mon Sep 17 00:00:00 2001 From: Greg Domjan Date: Mon, 26 Jul 2021 19:21:22 +1000 Subject: [PATCH] Add objdir support for mixed static + shared build --- src/main/java/com/github/maven_nar/NarCompileMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/maven_nar/NarCompileMojo.java b/src/main/java/com/github/maven_nar/NarCompileMojo.java index 7065a30f..d053bd0c 100644 --- a/src/main/java/com/github/maven_nar/NarCompileMojo.java +++ b/src/main/java/com/github/maven_nar/NarCompileMojo.java @@ -145,7 +145,7 @@ private void createLibrary(final Project antProject, final Library library) // object directory File objDir = new File(getTargetDirectory(), "obj"); - objDir = new File(objDir, getAOL().toString()); + objDir = new File(objDir, getAOL().toString() + "-" + library.getType()); objDir.mkdirs(); task.setObjdir(objDir);