[CMake] faq update?
Brandon Van Every
bvanevery at gmail.com
Thu Sep 13 20:27:36 EDT 2007
On 9/13/07, Goswin von Brederlow <brederlo at informatik.uni-tuebingen.de> wrote:
>
> For dynamic code (in C/C++/obj-c/fortran/anythign with C linkage) you
> must use -fPIC or variant thereof because otherwise your jump labels
> will be too small and linking will fail sometimes on x86, nearly
> always on amd64, ppc, always on ia64, hppa, ...
>
> And if you build static code with -fPIC then you get the reverse on
> some archs and loose, some claim up to 30%, speed on x86 and amd64.
Great. I just took a stab at redrafting the new FAQ material for
clarity, not accuracy. So now I will ask, is what's described
actually correct, at least for Linux and GCC?
http://www.cmake.org/Wiki/CMake_FAQ#Library_questions
If it's all YMMV for different Unixes or compilers, then we need
strong warnings about trying to apply this trick cross-platform. As
well as performance consequences you mention.
Cheers,
Brandon Van Every
More information about the CMake
mailing list