Tools/GCCProxy - Warnings to GCC, and -pthread
[tpg/acess2.git] / 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