diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-12 14:38:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-12 14:41:29 +0100 |
commit | 9e2600b6b983653e1b70ee571fc853a4cb2a969a (patch) | |
tree | dddcaf8734b62a496ccc33c3533457f3fb65b6c7 | |
parent | 53f22c9b8befdeed7934bcf107e39d15a04a2326 (diff) | |
download | openembedded-core-9e2600b6b983653e1b70ee571fc853a4cb2a969a.tar.gz openembedded-core-9e2600b6b983653e1b70ee571fc853a4cb2a969a.tar.bz2 openembedded-core-9e2600b6b983653e1b70ee571fc853a4cb2a969a.zip |
gcc-package-cross: Make the libexec symlinks use relative paths so they're reclocatable
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | meta/packages/gcc/gcc-package-cross.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/packages/gcc/gcc-package-cross.inc b/meta/packages/gcc/gcc-package-cross.inc index 0d5e55f9a6..4f902fa149 100644 --- a/meta/packages/gcc/gcc-package-cross.inc +++ b/meta/packages/gcc/gcc-package-cross.inc @@ -1,5 +1,8 @@ INHIBIT_PACKAGE_STRIP = "1" +# Compute how to get from libexecdir to bindir in python (easier than shell) +BINRELPATH = "${@oe.path.relative(bb.data.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}", d), bb.data.expand("${STAGING_DIR_NATIVE}${prefix_native}/bin/${MULTIMACH_TARGET_SYS}", d))}" + do_install () { oe_runmake 'DESTDIR=${D}' install-host @@ -12,11 +15,11 @@ do_install () { # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are - # found. + # found. These need to be relative paths so they work in different locations. dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ install -d $dest for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do - ln -sf ${STAGING_DIR_NATIVE}${prefix_native}/bin/${MULTIMACH_TARGET_SYS}/${TARGET_PREFIX}$t $dest$t + ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t done # Remove things we don't need but keep share/java |