Lines 42-57
Link Here
|
42 |
exit 2 |
42 |
exit 2 |
43 |
fi |
43 |
fi |
44 |
|
44 |
|
45 |
version="`${prefix}-gcc -dumpversion`" |
45 |
gcc_version="`${prefix}-gcc -dumpversion`" |
|
|
46 |
binutils_version="`${prefix}-ld -v | awk '{ print $5;}'`" |
46 |
|
47 |
|
47 |
tmpdir=`mktemp -d` |
48 |
tmpdir=`mktemp -d` |
48 |
tmpfile=`mktemp` |
49 |
tmpfile=`mktemp` |
49 |
|
50 |
|
50 |
if [ "`gcc -dumpmachine`" = "${prefix}" ] |
51 |
target="`gcc -dumpmachine`" |
|
|
52 |
if [ "${target}x" = "${prefix}x" ] |
51 |
then |
53 |
then |
52 |
/usr/lib/icecc/icecc-create-env /usr/${prefix}/gcc-bin/${version}/gcc /usr/${prefix}/gcc-bin/${version}/g++ | tee ${tmpfile} |
54 |
/usr/lib/icecc/icecc-create-env \ |
|
|
55 |
/usr/${prefix}/gcc-bin/${gcc_version}/gcc \ |
56 |
/usr/${prefix}/gcc-bin/${gcc_version}/g++ \ |
57 |
/usr/${prefix}/binutils-bin/${binutils_version}/as \ |
58 |
| tee ${tmpfile} |
53 |
else |
59 |
else |
54 |
/usr/lib/icecc/icecc-create-env /usr/${CHOST}/${prefix}/gcc-bin/${version}/${prefix}-gcc /usr/${CHOST}/${prefix}/gcc-bin/${version}/${prefix}-g++ | tee ${tmpfile} |
60 |
/usr/lib/icecc/icecc-create-env \ |
|
|
61 |
/usr/${target}/${prefix}/gcc-bin/${gcc_version}/${prefix}-gcc \ |
62 |
/usr/${target}/${prefix}/gcc-bin/${gcc_version}/${prefix}-g++ \ |
63 |
/usr/${target}/${prefix}/binutils-bin/${binutils_version}/as \ |
64 |
| tee ${tmpfile} |
55 |
fi |
65 |
fi |
56 |
|
66 |
|
57 |
# figure out the name of the archive |
67 |
# figure out the name of the archive |