diff options
| -rw-r--r-- | documentation/ref-manual/ref-qa-checks.xml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/documentation/ref-manual/ref-qa-checks.xml b/documentation/ref-manual/ref-qa-checks.xml index b4657e2ced..54cd4336eb 100644 --- a/documentation/ref-manual/ref-qa-checks.xml +++ b/documentation/ref-manual/ref-qa-checks.xml | |||
| @@ -464,11 +464,18 @@ can be found then it should be implemented. I can't find one at the moment. | |||
| 464 | <filename>.text</filename> sections. | 464 | <filename>.text</filename> sections. |
| 465 | This situation can result in a performance impact | 465 | This situation can result in a performance impact |
| 466 | at runtime. | 466 | at runtime. |
| 467 | <note><title>Tip</title> | 467 | </para> |
| 468 | If you do experience runtime performance issues, | 468 | |
| 469 | you could try assigning "-fPIC/-fpic" to | 469 | <para> |
| 470 | <filename>gcc</filename>. | 470 | Typically, the way to solve this performance issue is to |
| 471 | </note> | 471 | add "-fPIC" to the compiler command-line options. |
| 472 | For example, given software that reads | ||
| 473 | <link linkend='var-CFLAGS'><filename>CFLAGS</filename></link> | ||
| 474 | when you build it, you can add the following to your | ||
| 475 | recipe: | ||
| 476 | <literallayout class='monospaced'> | ||
| 477 | CFLAGS_append = " -fPIC " | ||
| 478 | </literallayout> | ||
| 472 | </para> | 479 | </para> |
| 473 | 480 | ||
| 474 | <para> | 481 | <para> |
