Exclude ld.mcld from GCC package
ld.mcld is built along with llvm-3.2 because it use LLVM as STL.
It is then deployed/packaged to GCC directories via deploy-host-mcld.sh
If we call build-gcc.sh again ld.mcld can be packaged with GCC
by accident. This is normally okay because package-release.sh
unpack ld.mcld* after unpacking GCC and overwrite any stale copy
of ld.mcld in GCC. But can cause problem if we manually unpack GCC
Change-Id: I200801584df2a97371a38cd72c78b799dfaa25e3
diff --git a/build/tools/build-gcc.sh b/build/tools/build-gcc.sh
index 55504a7..fda7336 100755
--- a/build/tools/build-gcc.sh
+++ b/build/tools/build-gcc.sh
@@ -395,7 +395,10 @@
ARCHIVE="$TOOLCHAIN-$HOST_TAG.tar.bz2"
SUBDIR=$(get_toolchain_install_subdir $TOOLCHAIN $HOST_TAG)
dump "Packaging $ARCHIVE"
- pack_archive "$PACKAGE_DIR/$ARCHIVE" "$NDK_DIR" "$SUBDIR"
+ # exlude ld.mcld
+ pack_archive "$PACKAGE_DIR/$ARCHIVE" "$NDK_DIR" "$SUBDIR" \
+ --exclude=$SUBDIR/bin/$ABI_CONFIGURE_TARGET-ld.mcld${HOST_EXE} \
+ --exclude=$SUBDIR/$ABI_CONFIGURE_TARGET/bin/ld.mcld${HOST_EXE}
fi
dump "Done."