X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Tools%2FGCCProxy%2Fgccproxy.sh;h=410a47680f86ce225d20fb37244e84b2d68bde75;hb=1f733f85261667f86a083a85bc07e736b44dfbe2;hp=7448d38df46e46bfeb7ae1c864a13f24cb96c27b;hpb=41e7d6a1d996936670f164a26580f18b727c6450;p=tpg%2Facess2.git diff --git a/Tools/GCCProxy/gccproxy.sh b/Tools/GCCProxy/gccproxy.sh index 7448d38d..410a4768 100755 --- a/Tools/GCCProxy/gccproxy.sh +++ b/Tools/GCCProxy/gccproxy.sh @@ -16,6 +16,8 @@ _miscargs="" _compile=0 _linktype=Applications +echo [GCCProxy] $* >&2 + while [[ $# -gt 0 ]]; do case "$1" in -E) @@ -48,6 +50,9 @@ while [[ $# -gt 0 ]]; do arg=${arg/,/ } _ldflags=$_ldflags" ${arg}" ;; + -Wall|-Werror|-Wextra)\ + _cflags=$_cflags" $1" + ;; -l|-L) _libs=$_libs" $1$2" shift @@ -61,10 +66,25 @@ while [[ $# -gt 0 ]]; do --inv=ld) _actas=ld ;; + -pthread) + _ldflags=$_ldflags" -lpthread" + ;; -print-prog-name=ld) echo $0 --inv=ld exit 0 ;; + -print-multi-os-directory) + _compile=1 + _cflags=$_cflags" $1" + ;; + -dumpspecs) + _compile=1 + _miscargs=$_miscargs" $1" + ;; + -dumpversion) + _compile=1 + _miscargs=$_miscargs" $1" + ;; *) _miscargs=$_miscargs" $1" ;;