From: John Hodge Date: Sat, 30 Nov 2013 14:47:13 +0000 (+0800) Subject: Tools/GCCProxy - Warnings to GCC, and -pthread X-Git-Tag: rel0.15~65 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=00e92546e065d1a5f7fa05299d6232c12c835cb3;p=tpg%2Facess2.git Tools/GCCProxy - Warnings to GCC, and -pthread --- diff --git a/Tools/GCCProxy/gccproxy.sh b/Tools/GCCProxy/gccproxy.sh index 5a126a92..1b0dfbe4 100755 --- a/Tools/GCCProxy/gccproxy.sh +++ b/Tools/GCCProxy/gccproxy.sh @@ -50,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 @@ -63,6 +66,9 @@ while [[ $# -gt 0 ]]; do --inv=ld) _actas=ld ;; + -pthread) + _ldflags=$_ldflags" -lpthread" + ;; -print-prog-name=ld) echo $0 --inv=ld exit 0