Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: general-concepts/pic/
Date: Wed, 12 Jan 2022 06:34:11
Message-Id: 1641969211.ac1685616b88eaa2ea65ce9a708d659c79e2b903.ulm@gentoo
1 commit: ac1685616b88eaa2ea65ce9a708d659c79e2b903
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 12 06:33:31 2022 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 12 06:33:31 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=ac168561
7
8 general-concepts/pic: Coding style
9
10 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
11
12 general-concepts/pic/text.xml | 18 ++++++++++++++----
13 1 file changed, 14 insertions(+), 4 deletions(-)
14
15 diff --git a/general-concepts/pic/text.xml b/general-concepts/pic/text.xml
16 index 44e97bd..85c85c1 100644
17 --- a/general-concepts/pic/text.xml
18 +++ b/general-concepts/pic/text.xml
19 @@ -2,14 +2,24 @@
20 <guide self="general-concepts/pic/">
21 <chapter>
22 <title>Position Independent Code</title>
23 -
24 <body>
25 +
26 <p>
27 -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.
28 +On some architectures, shared libraries must be built with <c>-fPIC</c>.
29 +On <c>x86</c> and others, shared libraries may build without <c>-fPIC</c>.
30 +This can be wasteful and potentially cause a performance hit.
31 </p>
32 -<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.
33 +
34 +<p>
35 +If you encounter a package that is not building shared libraries with
36 +<c>-fPIC</c>, patch the Makefile to build only the shared libraries with
37 +<c>-fPIC</c>. More information on PIC is available at the
38 +<uri link="https://wiki.gentoo.org/wiki/Project:Hardened/Position_Independent_Code_internals">
39 +PIC internals</uri> wiki page. If you are unsure, please ask in a public
40 +developer forum (like the <c>gentoo-dev</c> mailing list or <c>#gentoo-dev</c>
41 +IRC channel) for help.
42 </p>
43 -</body>
44
45 +</body>
46 </chapter>
47 </guide>