From 41e7d6a1d996936670f164a26580f18b727c6450 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 12 Jun 2013 11:55:10 +0800 Subject: [PATCH] Tools/GCCProxy - Tweaked to handle --version correctly --- Tools/GCCProxy/gccproxy.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Tools/GCCProxy/gccproxy.sh b/Tools/GCCProxy/gccproxy.sh index 5be7b6eb..7448d38d 100755 --- a/Tools/GCCProxy/gccproxy.sh +++ b/Tools/GCCProxy/gccproxy.sh @@ -90,8 +90,21 @@ rm $cfgfile #echo "_compile = $_compile, _preproc = $_preproc" +if [[ "x$_verarg" != "x" ]]; then + if [[ "x$_actas" == "xld" ]]; then + run $_LD $_miscargs $_verarg + else + run $_CC $_miscargs $_verarg + fi + exit $? +fi + if [[ "x$_actas" == "xld" ]]; then - run $_LD $LDFLAGS $_ldflags $_outfile $_miscargs $LIBGCC_PATH $_libs + if echo "$_miscargs" | grep '\.o\|\.a'; then + run $_LD $LDFLAGS $_ldflags $_outfile $_miscargs $LIBGCC_PATH $_libs + else + run $_LD $_miscargs $_verarg + fi exit $? fi -- 2.20.1