tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: wrappers and gcc -isystem
On 20/02/16 16:34, Mark Davies wrote:
OK, attached is the equivalent cwrappers patch (a much simpler thing).
Corrected patch (remove unnecessary line).
cheers
mark
Index: files/bin/generic-transform-cc.c
===================================================================
RCS file: /src/cvs/netbsd/pkgsrc/pkgtools/cwrappers/files/bin/generic-transform-cc.c,v
retrieving revision 1.3
diff -u -r1.3 generic-transform-cc.c
--- files/bin/generic-transform-cc.c 19 Apr 2015 14:30:07 -0000 1.3
+++ files/bin/generic-transform-cc.c 20 Feb 2016 03:55:58 -0000
@@ -360,6 +360,19 @@
ruleset = &include_rules;
opt_arg = NULL;
}
+ else if (strcmp(arg->val, "-isystem") == 0) {
+ opt_arg = arg;
+ arg = arg2;
+ if (arg == NULL || arg->val[0] == '-') {
+ errx(255, "Missing argument for %s",
+ opt_arg->val);
+ }
+ ruleset = &include_rules;
+ arg2 = TAILQ_NEXT(arg, link);
+ len = strlen(arg->val);
+ prefix = "";
+ path = arg->val;
+ }
#endif
else if (strncmp(arg->val, "-L", 2) == 0) {
len -= 2;
Home |
Main Index |
Thread Index |
Old Index