#58 Incorrect args to 'ar' on AIX

open
nobody
cpptasks (35)
5
2014-08-16
2008-06-17
Chris Mawer
No

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

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks