[CMake] -fPIC with executables

Brad King brad.king at kitware.com
Tue Oct 27 14:43:24 EDT 2009


James Bigler wrote:
> I noticed in some commit message to CMake a while ago that -fPIC was
> removed from executable compilation.
> 
> Would anyone care to comment on why this is?  I must admit I thought it
> wouldn't hurt it to have it compiled with that flag.

It's unnecessary, and is actually a Debian policy violation.
See here:

  http://www.cmake.org/Bug/view.php?id=9659

-Brad


More information about the CMake mailing list