diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-03-05 14:20:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-06 08:56:25 -0800 |
commit | b43e5d302969fb0a21eb5b9f97e78797af00b9a2 (patch) | |
tree | 9c4447253eb766ff62f6a260caeeddc9ef44630f /meta/classes/toolchain-scripts.bbclass | |
parent | 2a285e69c247f4aa3594b8a8a33fb893b856392a (diff) | |
download | poky-b43e5d302969fb0a21eb5b9f97e78797af00b9a2.tar.gz |
toolchain-script.bbclass: Added --sysroot to LDFLAGS.
[YOCTO #808] Added --sysroot to LDFALGS in environment files.
(From OE-Core rev: a3a7aed9cca5765f106762cbcd9efbf4f1fccf9f)
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/toolchain-scripts.bbclass')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 2b9cfac6a1..998ff14b23 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -24,6 +24,7 @@ toolchain_create_sdk_env_script () { | |||
24 | fi | 24 | fi |
25 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script | 25 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script |
26 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script | 26 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script |
27 | echo 'export LDFLAGS="--sysroot=${SDKTARGETSYSROOT}"' >> $script | ||
27 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | 28 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
28 | echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script | 29 | echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script |
29 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script | 30 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script |
@@ -83,6 +84,7 @@ toolchain_create_sdk_env_script_for_installer () { | |||
83 | fi | 84 | fi |
84 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script | 85 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script |
85 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script | 86 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script |
87 | echo 'export LDFLAGS="--sysroot=##SDKTARGETSYSROOT##"' >> $script | ||
86 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script | 88 | echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script |
87 | echo 'export POKY_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script | 89 | echo 'export POKY_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script |
88 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script | 90 | echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script |