pass the -W option from pcc to the c compiler pass the -x ... option from pcc to the loader Reference: /n/sources/patch/applied/pcc-warn2errors Date: Wed Mar 6 18:08:22 CET 2013 Signed-off-by: charles.forsyth@gmail.com --- /sys/src/cmd/pcc.c Wed Mar 6 18:07:28 2013 +++ /sys/src/cmd/pcc.c Wed Mar 6 18:07:26 2013 @@ -83,6 +83,7 @@ case 'S': case 'T': case 'V': + case 'W': append(&cc, smprint("-%c", ARGC())); break; case 's': @@ -111,6 +112,12 @@ case 'f': if(strcmp(ot->name, "arm") == 0) append(&ldargs, "-f"); + break; + case 'x': + s = ARGF(); + if(s == nil || *s == '-') + fatal("no -x argument"); + append(&ldargs, smprint("-x %s", s)); break; case 'a': /* hacky look inside ARGBEGIN insides, to see if we have -aa */