diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/Library.java | 12 | ||||
-rw-r--r-- | src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/apache/maven/plugin/nar/Library.java b/src/main/java/org/apache/maven/plugin/nar/Library.java index fbcf6dd..3f5588a 100644 --- a/src/main/java/org/apache/maven/plugin/nar/Library.java +++ b/src/main/java/org/apache/maven/plugin/nar/Library.java @@ -66,6 +66,13 @@ public class Library private boolean linkFortran = false; /** + * Link with fortran startup, so that the gcc linker can find the "main" of fortran. Defaults to false. + * + * @parameter expression="" + */ + private boolean linkFortranMain = false; + + /** * If specified will create the NarSystem class with methods to load a JNI library. * * @parameter expression="" @@ -118,6 +125,11 @@ public class Library return linkFortran; } + public final boolean linkFortranMain() + { + return linkFortranMain; + } + public final String getNarSystemPackage() { return narSystemPackage; diff --git a/src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java b/src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java index b67f0dd..e447b59 100644 --- a/src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java +++ b/src/main/java/org/apache/maven/plugin/nar/NarCompileMojo.java @@ -140,6 +140,7 @@ public class NarCompileMojo // fortran task.setLinkFortran( library.linkFortran() ); + task.setLinkFortranMain( library.linkFortranMain() ); // outDir File outDir; |