Using the standard gccLibrarian task passes "rvs" to ar. This works fine on most of the platforms I've tested, however AIX appears to be the exception to this and requires "-rvs" or it treats "rvs" as the name of the library to create.
The quick and dirty workaround I put in was to add:
String osName = System.getProperty("os.name");
// AIX is the exception to this and we need "-rvs"
if (osName.equals("AIX")) {
return GccProcessor.getOutputFileSwitch("-rvs", outputFile);
}
to the getOutputFileSwitch() method in AbstractArLibrarian.java
Chris