commit:     d327db7632339373acfb1482a29b4aa3dd92120d
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  6 11:38:15 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan  6 11:38:47 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d327db76

scripts/bootstrap-prefix: make libgcc_s copying verbose

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 66edd753cf..e9cafdb11d 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1538,13 +1538,15 @@ bootstrap_stage2() {
        # this in rpath while it does find it, resulting in a runtime trap
        if [[ ${CHOST} == x86_64-*-solaris* || ${CHOST} == sparcv9-*-solaris* 
]] ;
        then
+               local libgccs64=/usr/sfw/lib/64/libgcc_s.so.1
                [[ -e ${ROOT}/tmp/usr/bin/gcc ]] || \
-                       cp /usr/sfw/lib/64/libgcc_s.so.1 "${ROOT}"/tmp/usr/lib/ 
>& /dev/null
+                       cp "${libgccs64}" "${ROOT}"/tmp/usr/lib/
                # save another copy for after gcc-config gets run and removes
                # usr/lib/libgcc_s.* because new links should use the compiler
-               # specific libgcc_s.
+               # specific libgcc_s, but existing objs need to find this
+               # libgcc_s for as long as they are around (bash->libreadline)
                LDFLAGS="${LDFLAGS} -R${ROOT}/tmp/tmp"
-               cp /usr/sfw/lib/64/libgcc_s.so.1 "${ROOT}"/tmp/tmp/ >& /dev/null
+               cp "${libgccs64}" "${ROOT}"/tmp/tmp/
        fi
 
        # Disable RAP directory hacks of binutils and gcc.  If libc.so

Reply via email to