maven-native-plugin: for linkerProvider ar, linkerEndOptions and
linkerMiddleOptions not included in ar command
---------------------------------------------------------------------------------------------------------------
Key: MOJO-1711
URL: https://jira.codehaus.org/browse/MOJO-1711
Project: Mojo
Issue Type: Bug
Components: native
Environment: RHEL 5.6
Reporter: Wilfred Gaube
With native-maven-plugin:1.0-alpha-7 if you specify ar as linkerProvider, the
linkerEndOptions and LinkerMiddleOptions are not reflected in the ar command
that gets executed:
[DEBUG] Configuring mojo
'org.codehaus.mojo:native-maven-plugin:1.0-alpha-7:link' -->
[DEBUG] (f) attach = true
[DEBUG] (f) compilerProvider = generic
[DEBUG] (f) dependencyIncludeDirectory =
/home/admin/wilfred/h264bitstream/target/native/include
[DEBUG] (f) externalLibDirectory =
/home/admin/wilfred/h264bitstream/target/lib
[DEBUG] (f) linkerEndOptions = [EndOptions]
[DEBUG] (f) linkerMiddleOptions = [MiddleOptions]
[DEBUG] (f) linkerOutputDirectory = /home/admin/wilfred/h264bitstream/target
[DEBUG] (f) linkerProvider = ar
[DEBUG] (f) linkerStartOptions = [rsc]
[DEBUG] (f) project = MavenProject:
com.avaya.msg:libh264bitstream:1.0-SNAPSHOT @
/home/admin/wilfred/h264bitstream/pom.xml
[DEBUG] (f) usingLinkerResponseFile = false
[DEBUG] (f) workingDirectory = /home/admin/wilfred/h264bitstream
[DEBUG] -- end configuration --
[INFO] [native:link {execution: default-cli}]
[INFO] /bin/sh -c cd /home/admin/wilfred/h264bitstream && ar rsc
/home/admin/wilfred/h264bitstream/target/libh264bitstream-1.0-SNAPSHOT.a
If I change the pom to specify linkerExecutable ar and linkerProvider generic
then the middle and end options are included in the command but so is a -o
option which causes problems with the ar command:
[INFO] /bin/sh -c cd /home/admin/wilfred/h264bitstream && ar rsc -o
/home/admin/wilfred/h264bitstream/target/libh264bitstream-1.0-SNAPSHOT.a
MiddleOptions EndOptions
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email