[CMake] Adding -fPIC to static libraries

Prakash Punnoor prakash at punnoor.de
Wed Mar 1 16:38:49 EST 2006


Am Mittwoch März 1 2006 22:31 schrieb Brad King:
> Prakash Punnoor wrote:
> > Am Mittwoch März 1 2006 21:06 schrieb Brad King:
> >>Prakash Punnoor wrote:
> >>Supporting this in CMake is tricky.  The problem we face that libtool
> >>does not is supporting Windows compilers (correct me if I'm wrong I have
> >>not checked this).
> >
> > Not that I know of. Thinking again, it might be that the difference with
> > cmake would be much less porblematic, if cmake would have "convenience
> > libs" such that these are "static" libs which don't get installed but can
> > be used for linkinginto static/shared libs and exes. CMake could decides
> > itself whether it need to compile the convenience libs' objects twice or
> > only pic or non-pic (unlike libtool which does it always twice). Wouldn't
> > this be a feasable option? Should be fairly easy to handle by cmake. It
> > just needs to compile max two static libs, one with pic, one without.
>
> It is definately worth investigating but I'm not sure when we can get to
> it.  You can add a feature request here:
>
> http://www.cmake.org/Bug

Don't get me wrong, but my motivation is very low, as the last time someone 
advised me to add a feature request, the response to it was zero...(at least 
it seems).
-- 
(°=                 =°)
//\ Prakash Punnoor /\\
V_/                 \_V
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060301/e1fd0ca4/attachment.pgp


More information about the CMake mailing list