[CMake] problems with creating static library on aix
VerweijA at tass-safe.com
Wed Jul 7 11:26:17 EDT 2010
Apparently it had to do with the setting for "ncargs". Increasing it to 256 (blocks of 4K) solved it.
>From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
>Of Verweij, Arjen
>Sent: dinsdag 6 juli 2010 18:55
>To: cmake at cmake.org
>Subject: [CMake] problems with creating static library on aix
>We're experiencing two problems with creating static libraries through
>cmake on our AIX system.
>The first one is that a cmake based build environment will come up with
>64-bit XCOFF, but ar and friends won't play ball unless you add -X64. I
>suppose this issue has just been overlooked and is in fact minor.
>The other problem is that even though I have added the below workaround
>referenced in a thread from July '08, "ar cr" will choke on the amount
>or objects I'm feeding it. I'm sure this is a problem with the ar itself
>and not cmake, but I would be interested to learn of a possible
>workaround. It works fine for smaller archives.
>SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> -X64 cr <TARGET> <LINK_FLAGS>
>SET(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> -X64 r <TARGET> <LINK_FLAGS>
>SET(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -X64 <TARGET>")
>Powered by www.kitware.com
>Visit other Kitware open-source projects at
>Please keep messages on-topic and check the CMake FAQ at:
>Follow this link to subscribe/unsubscribe:
More information about the CMake