summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-05-22 14:08:13 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-30 16:32:14 +0100
commit66625b108d893e3ee605622cb5d243baf56afbae (patch)
tree7bc074c9d76be8d82d020ae7fab18f0dc23d8e04
parent59d810eacae56c126e819a40e017d2819513dc72 (diff)
downloadpoky-66625b108d893e3ee605622cb5d243baf56afbae.tar.gz
ref-manual: Added LDFLAGS variable and supporting links.
(From yocto-docs rev: 58d583c9167feee65d7d22b343ea250cb8807261) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/ref-manual/ref-classes.xml3
-rw-r--r--documentation/ref-manual/ref-qa-checks.xml2
-rw-r--r--documentation/ref-manual/ref-variables.xml31
3 files changed, 34 insertions, 2 deletions
diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml
index 5f4a814f9c..d87126c4a1 100644
--- a/documentation/ref-manual/ref-classes.xml
+++ b/documentation/ref-manual/ref-classes.xml
@@ -1403,7 +1403,8 @@
1403 files automatically itself.</para></listitem> 1403 files automatically itself.</para></listitem>
1404 <listitem><para><emphasis><filename>ldflags:</filename></emphasis> 1404 <listitem><para><emphasis><filename>ldflags:</filename></emphasis>
1405 Ensures that the binaries were linked with the 1405 Ensures that the binaries were linked with the
1406 <filename>LDFLAGS</filename> options provided by the build system. 1406 <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
1407 options provided by the build system.
1407 If this test fails, check that the <filename>LDFLAGS</filename> variable 1408 If this test fails, check that the <filename>LDFLAGS</filename> variable
1408 is being passed to the linker command.</para></listitem> 1409 is being passed to the linker command.</para></listitem>
1409 <listitem><para><emphasis><filename>libdir:</filename></emphasis> 1410 <listitem><para><emphasis><filename>libdir:</filename></emphasis>
diff --git a/documentation/ref-manual/ref-qa-checks.xml b/documentation/ref-manual/ref-qa-checks.xml
index 8571192e8d..78badc2d6b 100644
--- a/documentation/ref-manual/ref-qa-checks.xml
+++ b/documentation/ref-manual/ref-qa-checks.xml
@@ -299,7 +299,7 @@
299 </literallayout> 299 </literallayout>
300 This indicates that binaries produced when building the 300 This indicates that binaries produced when building the
301 recipe have not been linked with the 301 recipe have not been linked with the
302 <filename>LDFLAGS</filename> 302 <link linkend='var-LDFLAGS'><filename>LDFLAGS</filename></link>
303 options provided by the build system. 303 options provided by the build system.
304 Check to be sure that the <filename>LDFLAGS</filename> variable 304 Check to be sure that the <filename>LDFLAGS</filename> variable
305 is being passed to the linker command. 305 is being passed to the linker command.
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml
index 9a027375fa..24c0faa1ef 100644
--- a/documentation/ref-manual/ref-variables.xml
+++ b/documentation/ref-manual/ref-variables.xml
@@ -4159,6 +4159,37 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
4159 </glossdef> 4159 </glossdef>
4160 </glossentry> 4160 </glossentry>
4161 4161
4162 <glossentry id='var-LDFLAGS'><glossterm>LDFLAGS</glossterm>
4163 <glossdef>
4164 <para>
4165 Specifies the flags to pass to the linker.
4166 This variable is exported to an environment
4167 variable and thus made visible to the software being
4168 built during the compilation step.
4169 </para>
4170
4171 <para>
4172 Default initialization for <filename>LDFLAGS</filename>
4173 varies depending on what is being built:
4174 <itemizedlist>
4175 <listitem><para>
4176 <filename>TARGET_LDFLAGS</filename> when building
4177 for the target
4178 </para></listitem>
4179 <listitem><para>
4180 <filename>BUILD_LDFLAGS</filename> when building
4181 for the build host (i.e.
4182 <filename>-native</filename>)
4183 </para></listitem>
4184 <listitem><para>
4185 <filename>BUILDSDK_LDFLAGS</filename> when building
4186 for an SDK (i.e. <filename>-nativesdk</filename>)
4187 </para></listitem>
4188 </itemizedlist>
4189 </para>
4190 </glossdef>
4191 </glossentry>
4192
4162 <glossentry id='var-LEAD_SONAME'><glossterm>LEAD_SONAME</glossterm> 4193 <glossentry id='var-LEAD_SONAME'><glossterm>LEAD_SONAME</glossterm>
4163 <glossdef> 4194 <glossdef>
4164 <para> 4195 <para>