Import of pkgsrc-2016Q3

This commit is contained in:
2016-10-14 07:49:11 +02:00
committed by Lionel Sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949749 additions and 377083 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: cleanup-cc.c,v 1.2 2015/04/19 14:30:07 jperkin Exp $ */
/* $NetBSD: cleanup-cc.c,v 1.3 2016/01/10 19:13:05 bsiegert Exp $ */
/*-
* Copyright (c) 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -65,7 +65,7 @@ cleanup_cc(struct arglist *args)
if (strncmp(arg->val, "-I", 2) == 0 ||
strncmp(arg->val, "-L", 2) == 0 ||
strncmp(arg->val, "-Wl,-rpath,", 11) == 0 ||
strncmp(arg->val, "-Wl,-rpath-link,", 15) == 0) {
strncmp(arg->val, "-Wl,-rpath-link,", 16) == 0) {
i = wrapper_hash(arg->val) & (CLEANUP_HASH - 1);
TAILQ_FOREACH(arg3, hashtab + i, tmp_link) {
if (strcmp(arg->val, arg3->val) == 0) {

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
/* $NetBSD: normalise-cc.c,v 1.3 2015/07/07 15:00:25 jperkin Exp $ */
/* $NetBSD: normalise-cc.c,v 1.4 2016/09/15 17:08:14 joerg Exp $ */
/*-
* Copyright (c) 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -104,8 +104,16 @@ normalise_cc(struct arglist *args)
}
TAILQ_FOREACH_SAFE(arg, args, link, arg2) {
if (strcmp(arg->val, "-o") == 0 ||
strcmp(arg->val, "-dylib_file") == 0 ||
if (strcmp(arg->val, "-o") == 0) {
/* Output to stdout ("-") is explicitly valid. */
if (arg2 == NULL ||
(arg2->val[0] == '-' && arg2->val[1] != '\0'))
errx(255, "Missing argument for %s", arg->val);
arg2 = TAILQ_NEXT(arg2, link);
continue;
}
if (strcmp(arg->val, "-dylib_file") == 0 ||
strcmp(arg->val, "-dylib_install_name") == 0 ||
strcmp(arg->val, "-install_name") == 0 ||
strcmp(arg->val, "-seg_addr_table_filename") == 0 ||