[CMake] Patch CMake for Mac static library creation

Ryan Pavlik rpavlik at iastate.edu
Sat Dec 4 12:08:04 EST 2010


You can configure this for your project:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:STATIC_LIBRARY_FLAGS

Ryan

On Fri, Dec 3, 2010 at 7:07 PM, Belcourt, K. Noel <kbelco at sandia.gov> wrote:

> Hi,
>
> I'm on Mac OSX 10.5.8 with Intel 12.x compilers and CMake version 2.8.3.
>  CMake doesn't seem to add the -c option to the ranlib command to include
> common symbols into the library table of contents.  Here's the documentation
> for Apple's ranlib.
>
>       -c     Include  common  symbols  as  definitions with respect to the
> table of contents.  This is seldom the intended behavior for
>              linking from a library, as it forces the linking of a library
> member just because it uses an uninitialized global that  is
>              undefined  at  that  point in the linking.  This option is
> included only because this was the original behavior of ranlib.
>              This option is not the default.
>
> This behavior is necessary if you have Fortran 90 modules that define data
> but that don't contain any code (or contains code that isn't called).  Can
> -c be added by default when creating static Fortran libraries on the Mac
> using ranlib?
>
> Thanks.
>
> -- Noel Belcourt
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101204/27bb0164/attachment.htm>


More information about the CMake mailing list