[CMake] Adding -fPIC to static libraries
Alexander Neundorf
a.neundorf-work at gmx.net
Thu Mar 2 03:09:43 EST 2006
> Von: Brad King <brad.king at kitware.com>
>
> 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
There is already a bug report about this.
But I did it now this way, that I just created variables which list all
the source files which once were conv. libs and include this variable in
all targets which linked to these conv. libs.
Bye
Alex
--
"Feel free" mit GMX FreeMail!
Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net
More information about the CMake
mailing list