コンパイル後アーカイブするときのエラー(AIX)

AIX上でのFortranコードをコンパイル時に生じるエラー。

ar: 0707-126 test.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
make: The error code from the last command is 56.

困った。

解決方法(候補)を検索する。
http://www.unix.com/aix/116056-ar-0707-126-a.html
ar(1) issue building coreutils on 64-bit AIX
32ビットと64ビットが混ざり合ってしまっている(良く分からない表現だが)のが原因みたい。どちらが自分の場合正しいか、試してみる。

(追記)
「-X64 -rcu」を付けることで解決した。