Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Vitus Jensen <vjensen@gmx.de>
Subject: Re: [PATCH][STABLE] gcc-pacpake-cross.inc: Clean up do_install function massively (from Poky)
Date: Wed, 9 Jun 2010 06:17:37 -0700	[thread overview]
Message-ID: <20100609131737.GA29724@gmail.com> (raw)
In-Reply-To: <1276085639-26941-1-git-send-email-vjensen@gmx.de>

On (09/06/10 14:13), Vitus Jensen wrote:
> This fixes floating-point problems on machine n1200 and others caused by
> installing softfloat libraries while the toolchain creates hardfloat
> programs.
> 
> Signed-off-by: Vitus Jensen <vjensen@gmx.de>

looks ok.

Acked-by: Khem Raj <raj.khem@gmail.com>

> ---
>  recipes/gcc/gcc-package-cross.inc |   81 +++++++++++++-----------------------
>  1 files changed, 29 insertions(+), 52 deletions(-)
> 
> diff --git a/recipes/gcc/gcc-package-cross.inc b/recipes/gcc/gcc-package-cross.inc
> index 77da3fe..b205b8c 100644
> --- a/recipes/gcc/gcc-package-cross.inc
> +++ b/recipes/gcc/gcc-package-cross.inc
> @@ -18,58 +18,35 @@ FILES_libstdc++ = "${target_libdir}/libstdc++.so.*"
>  do_install () {
>  	oe_runmake 'DESTDIR=${D}' install
>  
> -	# Move libgcc_s into /lib
> -        mkdir -p ${D}${target_base_libdir}
> -        if [ -f ${D}${target_base_libdir}/libgcc_s.so.? ]; then
> -                # Already in the right location
> -                :
> -        elif [ -f ${D}${prefix}/lib/libgcc_s.so.? ]; then
> -                mv -f ${D}${prefix}/lib/libgcc_s.so* ${D}${target_base_libdir} || true
> -
> -        elif [  -f ${D}${prefix}/*/lib/nof/libgcc_s.so.? ]; then
> -                mv -f ${D}${prefix}/*/lib/nof/libgcc_s.so* ${D}${target_base_libdir}
> -        else
> -                mv -f ${D}${prefix}/*/lib/libgcc_s.so* ${D}${target_base_libdir} || true 
> -        fi
> -
> -
> -
> -	# Move libstdc++ and libg2c into libdir (resetting our prefix to /usr
> -        mkdir -p ${D}${target_libdir}
> -
> -        if [ -f ${D}${prefix}/*/lib/nof/libstdc++.so ]; then
> -
> -           mv -f ${D}${prefix}/*/lib/nof/libstdc++.so* ${D}${target_libdir} || true
> -           mv -f ${D}${prefix}/*/lib/nof/libg2c.so* ${D}${target_libdir} || true
> -           mv -f ${D}${prefix}/*/lib/nof/libgfortran*.so* ${D}${target_libdir} || true
> -           mv -f ${D}${prefix}/*/lib/nof/libssp*.so* ${D}${target_libdir} || true 	
> -
> -        else
> -           mv -f ${D}${prefix}/*/lib/libstdc++.so* ${D}${target_libdir} || true
> -           mv -f ${D}${prefix}/*/lib/libg2c.so* ${D}${target_libdir} || true
> -           mv -f ${D}${prefix}/*/lib/libgfortran*.so* ${D}${target_libdir} || true
> -           mv -f ${D}${prefix}/*/lib/libssp*.so* ${D}${target_libdir} || true
> -        fi
> -
> -
> +	install -d ${D}${target_base_libdir}
> +	install -d ${D}${target_libdir}
> +
> +	for d in ${TARGET_SYS}/lib/nof ${TARGET_SYS}/lib64 ${TARGET_SYS}/lib; do
> +		if [ -d ${D}${prefix}/$d/ ]; then
> +			mv -f ${D}${prefix}/$d/libgcc* ${D}${target_base_libdir} || true
> +			mv -f ${D}${prefix}/$d/* ${D}${target_libdir} || true
> +		fi
> +	done
> +
> +	# Manually run the target stripper since we won't get it run by
> +	# the packaging.
> +	if [ "x${OLD_INHIBIT_PACKAGE_STRIP}" != "x1" ]; then
> +		${TARGET_PREFIX}strip ${D}${target_libdir}/libstdc++.so.*
> +		${TARGET_PREFIX}strip ${D}${target_libdir}/libg2c.so.* || true
> +		${TARGET_PREFIX}strip ${D}${target_base_libdir}/libgcc_s.so.* || true
> +		${TARGET_PREFIX}strip ${D}${target_libdir}/libgfortran*.so* || true
> +	fi
>  
> -       # Manually run the target stripper since we won't get it run by
> -       # the packaging.
> -       if [ "x${OLD_INHIBIT_PACKAGE_STRIP}" != "x1" ]; then
> -               ${TARGET_PREFIX}strip ${D}${target_libdir}/libstdc++.so.*
> -               ${TARGET_PREFIX}strip ${D}${target_libdir}/libg2c.so.* || true
> -               ${TARGET_PREFIX}strip ${D}${target_base_libdir}/libgcc_s.so.* || true
> -               ${TARGET_PREFIX}strip ${D}${target_libdir}/libgfortran*.so* || true
> +	# 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 ${CROSS_DIR}/bin/${TARGET_PREFIX}gfortran ]; then
> +		currdir="$PWD"
> +		cd ${CROSS_DIR}/bin/
> +		ln -sf ${TARGET_PREFIX}gfortran ${TARGET_PREFIX}g77 || true
> +		if [ -d ${CROSS_DIR}/${TARGET_SYS}/bin/ ] ; then
> +			cd ${CROSS_DIR}/${TARGET_SYS}/bin/
> +			ln -sf gfortran g77 || true
> +		fi
> +		cd $currdir
>  	fi
> -     
> -       # 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 ${CROSS_DIR}/bin/${TARGET_PREFIX}gfortran ]; then
> -              currdir="$PWD"
> -              cd ${CROSS_DIR}/bin/
> -              ln -sf ${TARGET_PREFIX}gfortran ${TARGET_PREFIX}g77 || true
> -              cd ${CROSS_DIR}/${TARGET_SYS}/bin/
> -              ln -sf gfortran g77 || true
> -              cd $currdir
> -       fi
>  }
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



      reply	other threads:[~2010-06-09 13:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19  9:38 powerpc-g++ 4.2.4 problem casting long long to double Vitus Jensen
2010-05-19 11:21 ` Gary Thomas
2010-05-19 11:41   ` Vitus Jensen
2010-05-19 11:45     ` Gary Thomas
2010-05-19 15:46     ` Vitus Jensen
2010-05-19 16:48       ` Koen Kooi
2010-05-21 11:12         ` Vitus Jensen
2010-05-21 13:21           ` Vitus Jensen
2010-05-21 13:40             ` Vitus Jensen
2010-05-21 20:37               ` Khem Raj
2010-05-24 16:36                 ` Vitus Jensen
2010-05-24 18:25                   ` Khem Raj
2010-05-25 15:15                     ` Vitus Jensen
2010-05-25 15:52                       ` Khem Raj
2010-05-26  5:34                         ` Vitus Jensen
2010-05-26  6:21                           ` Khem Raj
2010-06-07 19:23                             ` [STABLE] " Vitus Jensen
2010-06-09 12:13                               ` [PATCH][STABLE] gcc-pacpake-cross.inc: Clean up do_install function massively (from Poky) Vitus Jensen
2010-06-09 13:17                                 ` Khem Raj [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100609131737.GA29724@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=vjensen@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox