summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-07-23 18:03:54 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-23 18:03:54 +0100
commitbf8023237c6fe43781fa4ce0db00f2b08cab7817 (patch)
tree288a194823c3e55ca4f7beceea639e17e1dc0b19 /meta
parentab82312433f8a7eacd6ee90d3bc9e5153282ec3f (diff)
downloadpoky-bf8023237c6fe43781fa4ce0db00f2b08cab7817.tar.gz
gcc-package-cross.inc: Setup symlinks in the libexec directory to our cross tools so the toolchain finds them correctly
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/gcc/gcc-package-cross.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/packages/gcc/gcc-package-cross.inc b/meta/packages/gcc/gcc-package-cross.inc
index 579daa163f..0d5e55f9a6 100644
--- a/meta/packages/gcc/gcc-package-cross.inc
+++ b/meta/packages/gcc/gcc-package-cross.inc
@@ -9,7 +9,15 @@ do_install () {
9 # Link gfortran to g77 to satisfy not-so-smart configure or hard coded g77 9 # Link gfortran to g77 to satisfy not-so-smart configure or hard coded g77
10 # gfortran is fully backwards compatible. This is a safe and practical solution. 10 # gfortran is fully backwards compatible. This is a safe and practical solution.
11 ln -sf ${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gfortran ${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}g77 || true 11 ln -sf ${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gfortran ${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}g77 || true
12 ln -sf ${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin/gfortran ${STAGING_DIR_NATIVE}/${prefix_native}/${TARGET_SYS}/bin/g77 || true 12
13
14 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
15 # found.
16 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
17 install -d $dest
18 for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
19 ln -sf ${STAGING_DIR_NATIVE}${prefix_native}/bin/${MULTIMACH_TARGET_SYS}/${TARGET_PREFIX}$t $dest$t
20 done
13 21
14 # Remove things we don't need but keep share/java 22 # Remove things we don't need but keep share/java
15 for d in info man share/doc share/locale share/man share/info; do 23 for d in info man share/doc share/locale share/man share/info; do