diff options
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/cwrappers/Makefile | 3 | ||||
-rw-r--r-- | pkgtools/cwrappers/files/bin/generic-transform-cc.c | 15 |
2 files changed, 16 insertions, 2 deletions
diff --git a/pkgtools/cwrappers/Makefile b/pkgtools/cwrappers/Makefile index 517d482c58b..45f24564c83 100644 --- a/pkgtools/cwrappers/Makefile +++ b/pkgtools/cwrappers/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.14 2016/01/10 19:13:05 bsiegert Exp $ +# $NetBSD: Makefile,v 1.15 2016/03/14 20:16:08 markd Exp $ PKGNAME= cwrappers-20160110 +PKGREVISION= 1 CATEGORIES= pkgtools sysutils MAINTAINER= joerg@NetBSD.org diff --git a/pkgtools/cwrappers/files/bin/generic-transform-cc.c b/pkgtools/cwrappers/files/bin/generic-transform-cc.c index 5897df85fa5..abb208b5b34 100644 --- a/pkgtools/cwrappers/files/bin/generic-transform-cc.c +++ b/pkgtools/cwrappers/files/bin/generic-transform-cc.c @@ -1,4 +1,4 @@ -/* $NetBSD: generic-transform-cc.c,v 1.3 2015/04/19 14:30:07 jperkin Exp $ */ +/* $NetBSD: generic-transform-cc.c,v 1.4 2016/03/14 20:16:08 markd Exp $ */ /*- * Copyright (c) 2009 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -360,6 +360,19 @@ generic_transform_cc(struct arglist *args) 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; |