Lines 10-16
Link Here
|
10 |
# |
10 |
# |
11 |
# |
11 |
# |
12 |
# Usage: "./icecream-create-env" creates a native environment(similar to icecc --build-native) |
12 |
# Usage: "./icecream-create-env" creates a native environment(similar to icecc --build-native) |
13 |
# "./icecream-create-env CHOST" creates a cross-compile environment using the cross-toolchain created by crossdev |
13 |
# "./icecream-create-env prefix" creates a cross-compile environment using the cross-toolchain created by crossdev |
14 |
# Example: |
14 |
# Example: |
15 |
# "emerge crossdev && crossdev -t sparc-unknown-linux-gnu && icecream-create-env sparc-unknown-linux" |
15 |
# "emerge crossdev && crossdev -t sparc-unknown-linux-gnu && icecream-create-env sparc-unknown-linux" |
16 |
|
16 |
|
Lines 20-26
then
Link Here
|
20 |
exit 1 |
20 |
exit 1 |
21 |
fi |
21 |
fi |
22 |
|
22 |
|
23 |
# param 1 = CHOST |
23 |
# param 1 = prefix |
24 |
prefix="${1}" |
24 |
prefix="${1}" |
25 |
|
25 |
|
26 |
if [ -z "${prefix}" ] |
26 |
if [ -z "${prefix}" ] |
Lines 51-56
if [ "`gcc -dumpmachine`" = "${prefix}"
Link Here
|
51 |
then |
51 |
then |
52 |
/usr/lib/icecc/icecc-create-env /usr/${prefix}/gcc-bin/${version}/gcc /usr/${prefix}/gcc-bin/${version}/g++ | tee ${tmpfile} |
52 |
/usr/lib/icecc/icecc-create-env /usr/${prefix}/gcc-bin/${version}/gcc /usr/${prefix}/gcc-bin/${version}/g++ | tee ${tmpfile} |
53 |
else |
53 |
else |
|
|
54 |
[[ -z ${CHOST} ]] && export CHOST=`gcc -dumpmachine` |
54 |
/usr/lib/icecc/icecc-create-env /usr/${CHOST}/${prefix}/gcc-bin/${version}/${prefix}-{gcc,g++} /usr/libexec/gcc/${prefix}/as | tee ${tmpfile} |
55 |
/usr/lib/icecc/icecc-create-env /usr/${CHOST}/${prefix}/gcc-bin/${version}/${prefix}-{gcc,g++} /usr/libexec/gcc/${prefix}/as | tee ${tmpfile} |
55 |
fi |
56 |
fi |
56 |
|
57 |
|