mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
ref-manual: Added TARGET_CC_ARCH variable and supporting links.
(From yocto-docs rev: d0887f66e3bc9d420d7ce626d5467bbc6d259b90) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
76e6f654cd
commit
40a17324ce
@@ -305,7 +305,7 @@
|
||||
is being passed to the linker command.
|
||||
A common workaround for this situation is to pass in
|
||||
<filename>LDFLAGS</filename> using
|
||||
<filename>TARGET_CC_ARCH</filename>
|
||||
<link linkend='var-TARGET_CC_ARCH'><filename>TARGET_CC_ARCH</filename></link>
|
||||
within the recipe as follows:
|
||||
<literallayout class='monospaced'>
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
@@ -7701,6 +7701,25 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
|
||||
</glossdef>
|
||||
</glossentry>
|
||||
|
||||
<glossentry id='var-TARGET_CC_ARCH'><glossterm>TARGET_CC_ARCH</glossterm>
|
||||
<glossdef>
|
||||
<para>
|
||||
Specifies architecture-specific C compiler flags for the
|
||||
target system.
|
||||
<filename>TARGET_CC_ARCH</filename> is initialized from
|
||||
<filename>TUNE_CCARGS</filename> by default.
|
||||
<note>
|
||||
It is a common workaround to append
|
||||
<link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
|
||||
to <filename>TUNE_CC_ARCH</filename> in recipes
|
||||
that build software for the target that would not
|
||||
otherwise respect the exported
|
||||
<filename>LDFLAGS</filename> variable.
|
||||
</note>
|
||||
</para>
|
||||
</glossdef>
|
||||
</glossentry>
|
||||
|
||||
<glossentry id='var-TARGET_CFLAGS'><glossterm>TARGET_CFLAGS</glossterm>
|
||||
<glossdef>
|
||||
<para>
|
||||
|
||||
Reference in New Issue
Block a user