diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-07-30 13:27:03 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-08-03 12:46:05 -0700 |
commit | 07733978e28ec682fbabac61325fe3dc22d6dbda (patch) | |
tree | f8d4e929ada7027ead69780a888e9618d45d28fe /recipes/gcc/gcc-package-cross.inc | |
parent | c52193ee037fe3d7c469256585ab70cb6c774ea8 (diff) | |
download | openembedded-07733978e28ec682fbabac61325fe3dc22d6dbda.tar.gz |
gcc,eglibc: Use the paths for mutli-machine safe toolchain install.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Koen Kooi <k-kooi@ti.com>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/gcc/gcc-package-cross.inc')
-rw-r--r-- | recipes/gcc/gcc-package-cross.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/gcc/gcc-package-cross.inc b/recipes/gcc/gcc-package-cross.inc index 6978340834..0c4ea2d69a 100644 --- a/recipes/gcc/gcc-package-cross.inc +++ b/recipes/gcc/gcc-package-cross.inc @@ -38,12 +38,12 @@ do_install () { # Link gfortran to g77 to satisfy not-so-smart configure or hard coded g77 # gfortran is fully backwards compatible. This is a safe and practical solution. - if [ -f ${D}${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gfortran ]; then + if [ -f ${D}${TOOLCHAIN_PATH}/bin/${TARGET_PREFIX}gfortran ]; then currdir="$PWD" - cd ${D}${STAGING_DIR_NATIVE}${prefix_native}/bin/ + cd ${D}${TOOLCHAIN_PATH}/bin/ ln -sf ${TARGET_PREFIX}gfortran ${TARGET_PREFIX}g77 || true - if [ -d ${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin/ ] ; then - cd ${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin/ + if [ -d ${TOOLCHAIN_PATH}/${TARGET_SYS}/bin/ ] ; then + cd ${TOOLCHAIN_PATH}/${TARGET_SYS}/bin/ ln -sf gfortran g77 || true fi cd $currdir |