diff options
Diffstat (limited to 'meta/packages/gcc/gcc-package-sdk.inc')
-rw-r--r-- | meta/packages/gcc/gcc-package-sdk.inc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/meta/packages/gcc/gcc-package-sdk.inc b/meta/packages/gcc/gcc-package-sdk.inc index cdce1da1c7..23b9a48eb3 100644 --- a/meta/packages/gcc/gcc-package-sdk.inc +++ b/meta/packages/gcc/gcc-package-sdk.inc | |||
@@ -7,10 +7,7 @@ PACKAGES = "${PN} ${PN}-doc" | |||
7 | 7 | ||
8 | FILES_${PN} = "\ | 8 | FILES_${PN} = "\ |
9 | ${bindir}/* \ | 9 | ${bindir}/* \ |
10 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1 \ | 10 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/* \ |
11 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2 \ | ||
12 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f771 \ | ||
13 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \ | ||
14 | ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \ | 11 | ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \ |
15 | ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \ | 12 | ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \ |
16 | ${gcclibdir}/${TARGET_SYS}/${BINV}/lib* \ | 13 | ${gcclibdir}/${TARGET_SYS}/${BINV}/lib* \ |
@@ -44,11 +41,12 @@ do_install () { | |||
44 | rm -f ${D}${prefix}/${TARGET_SYS}/lib/libiberty.a | 41 | rm -f ${D}${prefix}/${TARGET_SYS}/lib/libiberty.a |
45 | rm -f ${D}${libdir}/libiberty.a | 42 | rm -f ${D}${libdir}/libiberty.a |
46 | 43 | ||
47 | # Create the ${prefix}/${TARGET_SYS}/bin/* symlinks | 44 | # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are |
48 | install -d ${D}${prefix}/${TARGET_SYS}/bin/ | 45 | # found. |
49 | for l in ${D}${bindir}/*; do | 46 | dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ |
50 | ln -sf "${bindir}/`basename $l`" "${D}${prefix}/${TARGET_SYS}/bin/`basename $l | sed -e 's,${TARGET_PREFIX},,'`" | 47 | install -d $dest |
48 | for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do | ||
49 | ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t | ||
51 | done | 50 | done |
52 | ln -sf "${bindir}/${TARGET_PREFIX}gcc" "${D}${prefix}/${TARGET_SYS}/bin/cc" | ||
53 | } | 51 | } |
54 | 52 | ||