build-mingw32ce.sh: auto-detect gcc version

This commit is contained in:
Max Kellermann 2011-12-23 14:26:32 +01:00
parent 9917bc2b2f
commit 44cb392817

View File

@ -260,9 +260,12 @@ build_bootstrap_gcc()
make ${PARALLELISM} all-gcc
make configure-target-libgcc
make install-gcc
gcc_version=`${PREFIX}/bin/${TARGET}-gcc -dumpversion`
cd ${TARGET}/libgcc
make ${PARALLELLISM} libgcc.a
/usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/4.6.2
/usr/bin/install -c -m 644 libgcc.a ${PREFIX}/lib/gcc/${TARGET}/${gcc_version}
cd ${BUILD_DIR}
}