Menu

#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


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.