Tools/GCCProxy - add -print-multi-os-directory handling
[tpg/acess2.git] / Tools / GCCProxy / gccproxy.sh
index 5a126a9..410a476 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,10 +66,17 @@ 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"

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