diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-13 17:41:29 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-13 17:41:29 +0100 |
commit | b2c3ce6d17520d43b10777dd306449876cb40819 (patch) | |
tree | 1eff9f09fd2dd326c68f1419140f1caf792269c6 /meta/recipes-tbd | |
parent | 271bd9d8f97ca14e931b45513f6eaa6ed9e9a675 (diff) | |
download | poky-b2c3ce6d17520d43b10777dd306449876cb40819.tar.gz |
meta-toolchain: Update the way ld.so.cache is handled
Fix the library search path so that libs in the toolchain in /opt/
have priority over those in base system but ones from the base system
can still be found.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-tbd')
-rw-r--r-- | meta/recipes-tbd/meta/meta-toolchain.bb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/recipes-tbd/meta/meta-toolchain.bb b/meta/recipes-tbd/meta/meta-toolchain.bb index 2fab8f94b2..633f5f1990 100644 --- a/meta/recipes-tbd/meta/meta-toolchain.bb +++ b/meta/recipes-tbd/meta/meta-toolchain.bb | |||
@@ -72,8 +72,15 @@ do_populate_sdk() { | |||
72 | #rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}/lib/*.la | 72 | #rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}/lib/*.la |
73 | rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/*.la | 73 | rm -f ${SDK_OUTPUT}/${SDKPATHNATIVE}${libdir_nativesdk}/*.la |
74 | 74 | ||
75 | # Link the ld.so.cache file into the hosts filesystem | 75 | # Create an appropriate setup so the dynamic loader can find libs in |
76 | ln -s /etc/ld.so.cache ${SDK_OUTPUT}/${SDKPATHNATIVE}/etc/ld.so.cache | 76 | # both the host system and the toolchain directories |
77 | echo ${SDKPATHNATIVE}${libdir} > ${SDK_OUTPUT}/${SDKPATHNATIVE}/etc/ld.so.conf | ||
78 | echo ${SDKPATHNATIVE}${base_libdir} >> ${SDK_OUTPUT}/${SDKPATHNATIVE}/etc/ld.so.conf | ||
79 | echo "include /etc/ld.so.conf" >> ${SDK_OUTPUT}/${SDKPATHNATIVE}/etc/ld.so.conf | ||
80 | echo "#!/bin/sh" > ${SDK_OUTPUT}/${SDKPATH}/postinstall | ||
81 | echo "ldconfig -f ${SDKPATHNATIVE}/etc/ld.so.conf -C /${SDKPATHNATIVE}/etc/ld.so.cache" >> ${SDK_OUTPUT}/${SDKPATH}/postinstall | ||
82 | chmod a+x ${SDK_OUTPUT}/${SDKPATH}/postinstall | ||
83 | |||
77 | 84 | ||
78 | # Setup site file for external use | 85 | # Setup site file for external use |
79 | siteconfig=${SDK_OUTPUT}/${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS} | 86 | siteconfig=${SDK_OUTPUT}/${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS} |