Tools/GCCProxy - Warnings to GCC, and -pthread
authorJohn Hodge <[email protected]>
Sat, 30 Nov 2013 14:47:13 +0000 (22:47 +0800)
committerJohn Hodge <[email protected]>
Sat, 30 Nov 2013 14:47:13 +0000 (22:47 +0800)
Tools/GCCProxy/gccproxy.sh

index 5a126a9..1b0dfbe 100755 (executable)
@@ -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

UCC git Repository :: git.ucc.asn.au