summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc')
-rw-r--r--meta/packages/gcc/gcc-package-cross.inc7
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 @@
1INHIBIT_PACKAGE_STRIP = "1" 1INHIBIT_PACKAGE_STRIP = "1"
2 2
3# Compute how to get from libexecdir to bindir in python (easier than shell)
4BINRELPATH = "${@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))}"
5
3do_install () { 6do_install () {
4 oe_runmake 'DESTDIR=${D}' install-host 7 oe_runmake 'DESTDIR=${D}' install-host
5 8
@@ -12,11 +15,11 @@ do_install () {
12 15
13 16
14 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are 17 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
15 # found. 18 # found. These need to be relative paths so they work in different locations.
16 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ 19 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
17 install -d $dest 20 install -d $dest
18 for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do 21 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 22 ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
20 done 23 done
21 24
22 # Remove things we don't need but keep share/java 25 # Remove things we don't need but keep share/java