diff options
Diffstat (limited to 'src/cmd/dist/build.c')
| -rw-r--r-- | src/cmd/dist/build.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/dist/build.c b/src/cmd/dist/build.c index f02bfd8e71..f46771d20d 100644 --- a/src/cmd/dist/build.c +++ b/src/cmd/dist/build.c @@ -932,6 +932,8 @@ install(char *dir) vadd(&compile, "-Bp+"); vadd(&compile, bpathf(&b, "-I%s/include/plan9", goroot)); vadd(&compile, bpathf(&b, "-I%s/include/plan9/%s", goroot, gohostarch)); + // Work around Plan 9 C compiler's handling of #include with .. path. + vadd(&compile, bpathf(&b, "-I%s/src/cmd/ld", goroot)); } else { vcopy(&compile, gccargs.p, gccargs.len); vadd(&compile, "-c"); |
