diff options
-rw-r--r-- | documentation/ref-manual/ref-qa-checks.xml | 2 | ||||
-rw-r--r-- | documentation/ref-manual/ref-variables.xml | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/documentation/ref-manual/ref-qa-checks.xml b/documentation/ref-manual/ref-qa-checks.xml index 78badc2d6b..e17fc2c216 100644 --- a/documentation/ref-manual/ref-qa-checks.xml +++ b/documentation/ref-manual/ref-qa-checks.xml | |||
@@ -305,7 +305,7 @@ | |||
305 | is being passed to the linker command. | 305 | is being passed to the linker command. |
306 | A common workaround for this situation is to pass in | 306 | A common workaround for this situation is to pass in |
307 | <filename>LDFLAGS</filename> using | 307 | <filename>LDFLAGS</filename> using |
308 | <filename>TARGET_CC_ARCH</filename> | 308 | <link linkend='var-TARGET_CC_ARCH'><filename>TARGET_CC_ARCH</filename></link> |
309 | within the recipe as follows: | 309 | within the recipe as follows: |
310 | <literallayout class='monospaced'> | 310 | <literallayout class='monospaced'> |
311 | TARGET_CC_ARCH += "${LDFLAGS}" | 311 | TARGET_CC_ARCH += "${LDFLAGS}" |
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 2d1cba7d46..1d491cc1fe 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml | |||
@@ -7701,6 +7701,25 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" | |||
7701 | </glossdef> | 7701 | </glossdef> |
7702 | </glossentry> | 7702 | </glossentry> |
7703 | 7703 | ||
7704 | <glossentry id='var-TARGET_CC_ARCH'><glossterm>TARGET_CC_ARCH</glossterm> | ||
7705 | <glossdef> | ||
7706 | <para> | ||
7707 | Specifies architecture-specific C compiler flags for the | ||
7708 | target system. | ||
7709 | <filename>TARGET_CC_ARCH</filename> is initialized from | ||
7710 | <filename>TUNE_CCARGS</filename> by default. | ||
7711 | <note> | ||
7712 | It is a common workaround to append | ||
7713 | <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link> | ||
7714 | to <filename>TUNE_CC_ARCH</filename> in recipes | ||
7715 | that build software for the target that would not | ||
7716 | otherwise respect the exported | ||
7717 | <filename>LDFLAGS</filename> variable. | ||
7718 | </note> | ||
7719 | </para> | ||
7720 | </glossdef> | ||
7721 | </glossentry> | ||
7722 | |||
7704 | <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm> | 7723 | <glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm> |
7705 | <glossdef> | 7724 | <glossdef> |
7706 | <para> | 7725 | <para> |