From 44cb3928178db41a1c5269199665a7b162bffeba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 23 Dec 2011 14:26:32 +0100 Subject: [PATCH] build-mingw32ce.sh: auto-detect gcc version --- build-arm-mingw32ce/build-mingw32ce.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-arm-mingw32ce/build-mingw32ce.sh b/build-arm-mingw32ce/build-mingw32ce.sh index 0a396de..689d8e2 100755 --- a/build-arm-mingw32ce/build-mingw32ce.sh +++ b/build-arm-mingw32ce/build-mingw32ce.sh @@ -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} }