[vtk-developers] vtkCommonCorePython static build failure

David Gobbi david.gobbi at gmail.com
Fri Jun 29 10:27:27 EDT 2012


On Fri, Jun 29, 2012 at 7:39 AM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>
> A new feature was added to CMake to make this easier.  There is a property
> that can be set that will add -fPIC or whatever flag the compiler uses for
> that to the static builds:
>
> set(CMAKE_POSITION_INDEPENDENT_CODE ON)
>
> It is in 2.8.9.  (which is in RC right now).

Awesome.  It'll probably be good for the python wrappers to always be
built with PIC.

 - David



More information about the vtk-developers mailing list