commit: ac1685616b88eaa2ea65ce9a708d659c79e2b903 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Wed Jan 12 06:33:31 2022 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Wed Jan 12 06:33:31 2022 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=ac168561
general-concepts/pic: Coding style Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> general-concepts/pic/text.xml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/general-concepts/pic/text.xml b/general-concepts/pic/text.xml index 44e97bd..85c85c1 100644 --- a/general-concepts/pic/text.xml +++ b/general-concepts/pic/text.xml @@ -2,14 +2,24 @@ <guide self="general-concepts/pic/"> <chapter> <title>Position Independent Code</title> - <body> + <p> -On some architectures, shared libraries must be built with -fPIC. On <c>x86</c> and others, shared libraries may build without -fPIC. This can be wasteful and potentially cause a performance hit. +On some architectures, shared libraries must be built with <c>-fPIC</c>. +On <c>x86</c> and others, shared libraries may build without <c>-fPIC</c>. +This can be wasteful and potentially cause a performance hit. </p> -<p>If you encounter a package that is not building shared libraries with -fPIC, patch the Makefile to build only the shared libraries with -fPIC. More information on PIC is available at the <uri link="https://wiki.gentoo.org/wiki/Project:Hardened/Position_Independent_Code_internals">PIC internals</uri> wiki page. If you are unsure, please ask in a public developer forum (like the <c>gentoo-dev</c> mailing list or <c>#gentoo-dev</c> IRC channel) for help. + +<p> +If you encounter a package that is not building shared libraries with +<c>-fPIC</c>, patch the Makefile to build only the shared libraries with +<c>-fPIC</c>. More information on PIC is available at the +<uri link="https://wiki.gentoo.org/wiki/Project:Hardened/Position_Independent_Code_internals"> +PIC internals</uri> wiki page. If you are unsure, please ask in a public +developer forum (like the <c>gentoo-dev</c> mailing list or <c>#gentoo-dev</c> +IRC channel) for help. </p> -</body> +</body> </chapter> </guide>