From 66625b108d893e3ee605622cb5d243baf56afbae Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 22 May 2014 14:08:13 +0300 Subject: ref-manual: Added LDFLAGS variable and supporting links. (From yocto-docs rev: 58d583c9167feee65d7d22b343ea250cb8807261) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 3 ++- documentation/ref-manual/ref-qa-checks.xml | 2 +- documentation/ref-manual/ref-variables.xml | 31 ++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) (limited to 'documentation') 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 @@ files automatically itself. ldflags: Ensures that the binaries were linked with the - LDFLAGS options provided by the build system. + LDFLAGS + options provided by the build system. If this test fails, check that the LDFLAGS variable is being passed to the linker command. libdir: 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 @@ This indicates that binaries produced when building the recipe have not been linked with the - LDFLAGS + LDFLAGS options provided by the build system. Check to be sure that the LDFLAGS variable 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" + LDFLAGS + + + Specifies the flags to pass to the linker. + This variable is exported to an environment + variable and thus made visible to the software being + built during the compilation step. + + + + Default initialization for LDFLAGS + varies depending on what is being built: + + + TARGET_LDFLAGS when building + for the target + + + BUILD_LDFLAGS when building + for the build host (i.e. + -native) + + + BUILDSDK_LDFLAGS when building + for an SDK (i.e. -nativesdk) + + + + + + LEAD_SONAME -- cgit v1.2.3-54-g00ecf