[CMake] Disabling -fPIC

Rolf Eike Beer eike at sf-mail.de
Fri Oct 1 10:31:36 EDT 2010


Am Friday 01 October 2010 schrieb Marek Szuba:
> Hello,
> 
> Recently I have converted a Linux project I work on from hand-crafted make
> files to CMake. Everything up to and including installation works fine,
> however the resulting binaries cannot be run due to the system on which
> this software runs disallowing text relocations. Having compared how the
> compiler is is invoked by both CMake-generated and hand-crafted make
> files, I believe this is caused by the former using -fPIC, which while
> generally a good idea does not do here because the project depends on a
> number of binary-only libraries compiled (according to eu-findtexrel)
> without this flag. Therefore, how can I convince CMake not to use this
> flag?

http://www.cmake.org/pipermail/cmake/2010-September/039871.html (Only two days 
old...)

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101001/9158486d/attachment.pgp>


More information about the CMake mailing list