diff options
author | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2009-11-30 09:12:58 +0100 |
---|---|---|
committer | Mark Donszelmann <Mark.Donszelmann@gmail.com> | 2009-11-30 09:12:58 +0100 |
commit | e96b0aa25ee1c30f5f00f7066095433512f2fee2 (patch) | |
tree | f261c1efb86daf914440b9bfec31de3b1aaa6982 /src/main/java/org | |
parent | b4e4a008ccd1c7a2cda9d1991a1c1f94a60caa80 (diff) | |
download | maven-nar-plugin-e96b0aa25ee1c30f5f00f7066095433512f2fee2.tar.gz maven-nar-plugin-e96b0aa25ee1c30f5f00f7066095433512f2fee2.tar.bz2 maven-nar-plugin-e96b0aa25ee1c30f5f00f7066095433512f2fee2.tar.xz maven-nar-plugin-e96b0aa25ee1c30f5f00f7066095433512f2fee2.zip |
Fixed NAR-112
Diffstat (limited to 'src/main/java/org')
-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; |