|
|
@ -24,18 +24,20 @@ |
|
|
|
. $base/package/base/gcc3-cross/cross.conf |
|
|
|
|
|
|
|
gcc_cross_pi(){ |
|
|
|
mv -fv $root/$prefix/crosscc/* $root/$prefix/bin |
|
|
|
rmdir $root/$prefix/crosscc |
|
|
|
if [ $stagelevel = 0 ] ; then |
|
|
|
mv -fv $root/$prefix/crosscc/* $root/$prefix/bin |
|
|
|
rmdir $root/$prefix/crosscc |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
# overwrite some confopt variables ... |
|
|
|
confopt="--preifx=$root/$prefix --target=\$arch_target --host=\$arch_build \ |
|
|
|
--disable-nls" |
|
|
|
|
|
|
|
# do the same as gcc3 |
|
|
|
. $base/package/base/gcc3/gcc3.conf |
|
|
|
|
|
|
|
# but always do a cross build ... |
|
|
|
# overwrite some confopt variables ... |
|
|
|
confopt="--prefix=$root/$prefix --target=\$arch_target --host=\$arch_build \ |
|
|
|
--disable-nls" |
|
|
|
|
|
|
|
# but always do a cross build and some postinstall adaptions ... |
|
|
|
custmain="gcc_stage0" |
|
|
|
hook_add postinstall 3 gcc_cross_pi |
|
|
|
|