allow different arguments to cl

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@125473 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
brett committed 2005-01-18 09:11:01 +00:00
1 parent fb66cb7e2d
commit e1b166bca7
3 files changed
+62 -6

No files matched your search

+1
View File
@@ -25,6 +25,7 @@
</properties>
<body>
<release version="1.2-SNAPSHOT" date="in CVS">
<action dev="brett" type="add" due-to="baleineca">Checking for runtime property and adding it. Default to "dynamic" if not present.</action>
<action dev="brett" type="fix" issue="MPNATIVE-10" due-to="Joachim Bader">Add DLL support to the plugin</action>
<action dev="brett" type="fix" issue="MPNATIVE-7" due-to="Joachim Bader">Changed repository location of libraries from <code>so</code> to <code>sos</code> so Maven can handle them as dependencies</action>
<action dev="brett" type="add" issue="MPNATIVE-7" due-to="Joachim Bader">Add support for native dependencies (libset/syslibset)</action>
+34 -5
View File
@@ -7,12 +7,41 @@
<faq id="cygwin">
<question>How to run the gcc under cygwin?</question>
<answer>
Set the follwing properties in your <code>project.properties</code>:
<p>
Set the following properties in your <code>project.properties</code>:
</p>
<source>
maven.native.include.os=win32
maven.native.compiler.arg.start=-mno-cygwin
maven.native.linker.arg.start=-mno-cygwin -Wl,--add-stdcall-alias
</source>
maven.native.include.os=win32
maven.native.compiler.arg.start=-mno-cygwin
maven.native.linker.arg.start=-mno-cygwin -Wl,--add-stdcall-alias</source>
</answer>
</faq>
<faq id="msvc">
<question>How to run cl on Windows?</question>
<answer>
<p>
Set the following properties in your <code>project.properties</code>:
</p>
<source>
maven.native.include.os=win32
maven.native.compiler.name=msvc</source>
<p>
Optionally, you can set the following property if you don't want the
default argument /MD (or /MDd if in debug mode) to be passed to cl.
At time of writing, this always gets set by CCTask so even if you
pass a different argument with maven.native.compiler.arg.start
property, it won't be unset. You will simply end up with 2
arguments...
</p>
<source>
maven.native.runtime=static</source>
<p>
Other arguments for cl can be passed in by setting the following
property (with values you *really* want, of course, this is just an
example). Multiple values are separated by a space.
</p>
<source>
maven.native.compiler.arg.start=/GR /GX</source>
</answer>
</faq>
</part>