aboutsummaryrefslogtreecommitdiff
path: root/devel/ccache
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-02-03 21:58:42 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-02-03 21:58:42 +0000
commit62e4999a8385f8079d5d9698c48ccd9ddfd5e312 (patch)
treed57736cee070a18be4c8d082da485d6101974446 /devel/ccache
parentdb4321b9cfd96267a83b24e46c3b6a0517902741 (diff)
downloadports-62e4999a8385f8079d5d9698c48ccd9ddfd5e312.tar.gz
ports-62e4999a8385f8079d5d9698c48ccd9ddfd5e312.zip
Notes
Diffstat (limited to 'devel/ccache')
-rw-r--r--devel/ccache/Makefile2
-rw-r--r--devel/ccache/files/patch-CCACHE_CPP2_Wp_MT-fix-Wp23
2 files changed, 24 insertions, 1 deletions
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile
index fbed6b4401b5..dd30e6a9d692 100644
--- a/devel/ccache/Makefile
+++ b/devel/ccache/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ccache
PORTVERSION= 3.2.5
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= http://www.samba.org/ftp/ccache/ \
LOCAL/bdrewery
diff --git a/devel/ccache/files/patch-CCACHE_CPP2_Wp_MT-fix-Wp b/devel/ccache/files/patch-CCACHE_CPP2_Wp_MT-fix-Wp
new file mode 100644
index 000000000000..96038da238fb
--- /dev/null
+++ b/devel/ccache/files/patch-CCACHE_CPP2_Wp_MT-fix-Wp
@@ -0,0 +1,23 @@
+diff --git a/ccache.c b/ccache.c
+index 5635cc1..ddbc822 100644
+--- ccache.c
++++ ccache.c
+@@ -2249,9 +2249,15 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
+ output_dep = make_relative_path(x_strdup(argv[i] + 9));
+ args_add(dep_args, argv[i]);
+ continue;
+- } else if (str_startswith(argv[i], "-Wp,-M")) {
+- /* -MF, -MP, -MQ, -MT, etc. TODO: Make argument to MF/MQ/MT
+- * relative. */
++ } else if (str_eq(argv[i], "-Wp,-MP")
++ || (strlen(argv[i]) > 8
++ && str_startswith(argv[i], "-Wp,-M")
++ && argv[i][7] == ','
++ && (argv[i][6] == 'F'
++ || argv[i][6] == 'Q'
++ || argv[i][6] == 'T')
++ && !strchr(argv[i] + 8, ','))) {
++ /* TODO: Make argument to MF/MQ/MT relative. */
+ args_add(dep_args, argv[i]);
+ continue;
+ } else if (conf->direct_mode) {