summaryrefslogtreecommitdiff
path: root/onbld/debian/patches/cw-support-YP.patch
blob: 3cd148567babb7770ed4f47bb189fbaa569b5b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: onbld/usr/src/tools/cw/cw.c
===================================================================
--- onbld.orig/usr/src/tools/cw/cw.c
+++ onbld/usr/src/tools/cw/cw.c
@@ -1394,6 +1394,11 @@ do_gcc(cw_ictx_t *ctx)
 			/* Just ignore -YS,... for now */
 			if (strncmp(arg, "S,", 2) == 0)
 				break;
+            /* -YP,dir - pass through */
+			if (strncmp(arg, "P,", 2) == 0) {
+				newae(ctx->i_ae, arg - 2);
+				break;
+			}
 			if (strncmp(arg, "l,", 2) == 0) {
 				char *s = strdup(arg);
 				s[0] = '-';