Lines 79-84
Link Here
|
79 |
added_gcc=$1 |
79 |
added_gcc=$1 |
80 |
shift |
80 |
shift |
81 |
added_gxx=$1 |
81 |
added_gxx=$1 |
|
|
82 |
shift |
83 |
added_as=$1 |
82 |
|
84 |
|
83 |
if test -z "$added_gcc" || test -z "$added_gxx"; then |
85 |
if test -z "$added_gcc" || test -z "$added_gxx"; then |
84 |
echo "usage: $0 <gcc_path> <g++_path>" |
86 |
echo "usage: $0 <gcc_path> <g++_path>" |
Lines 91-103
Link Here
|
91 |
fi |
93 |
fi |
92 |
|
94 |
|
93 |
if ! test -x "$added_gxx" ; then |
95 |
if ! test -x "$added_gxx" ; then |
94 |
echo "'$added_gcc' is no executable." |
96 |
echo "'$added_gxx' is no executable." |
|
|
97 |
exit 1 |
98 |
fi |
99 |
|
100 |
if ! test -x "$added_as" ; then |
101 |
echo "'$added_as' is no executable." |
95 |
exit 1 |
102 |
exit 1 |
96 |
fi |
103 |
fi |
97 |
|
104 |
|
98 |
add_file $added_gcc /usr/bin/gcc |
105 |
add_file $added_gcc /usr/bin/gcc |
99 |
add_file $added_gxx /usr/bin/g++ |
106 |
add_file $added_gxx /usr/bin/g++ |
100 |
add_file /usr/bin/as |
107 |
add_file $added_as /usr/bin/as |
101 |
|
108 |
|
102 |
if test "$is_darwin" = 1; then |
109 |
if test "$is_darwin" = 1; then |
103 |
# add dynamic linker |
110 |
# add dynamic linker |