From 00e92546e065d1a5f7fa05299d6232c12c835cb3 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 30 Nov 2013 22:47:13 +0800 Subject: [PATCH] Tools/GCCProxy - Warnings to GCC, and -pthread --- Tools/GCCProxy/gccproxy.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.20.1