LEFT | RIGHT |
(no file at all) | |
1 #!/bin/rc -e | 1 #!/bin/rc -e |
2 # Copyright 2012 The Go Authors. All rights reserved. | 2 # Copyright 2012 The Go Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style | 3 # Use of this source code is governed by a BSD-style |
4 # license that can be found in the LICENSE file. | 4 # license that can be found in the LICENSE file. |
5 | 5 |
6 # Environment variables that control make.rc: | 6 # Environment variables that control make.rc: |
7 # | 7 # |
8 # GOROOT_FINAL: The expected final Go root, baked into binaries. | 8 # GOROOT_FINAL: The expected final Go root, baked into binaries. |
9 # The default is the location of the Go tree during the build. | 9 # The default is the location of the Go tree during the build. |
10 # | 10 # |
(...skipping 17 matching lines...) Expand all Loading... |
28 # | 28 # |
29 # CGO_ENABLED: Controls cgo usage during the build. Set it to 1 | 29 # CGO_ENABLED: Controls cgo usage during the build. Set it to 1 |
30 # to include all cgo related files, .c and .go file with "cgo" | 30 # to include all cgo related files, .c and .go file with "cgo" |
31 # build directive, in the build. Set it to 0 to ignore them. | 31 # build directive, in the build. Set it to 0 to ignore them. |
32 | 32 |
33 rfork e | 33 rfork e |
34 if(! test -f run.rc){ | 34 if(! test -f run.rc){ |
35 echo 'make.rc must be run from $GOROOT/src' >[1=2] | 35 echo 'make.rc must be run from $GOROOT/src' >[1=2] |
36 exit wrongdir | 36 exit wrongdir |
37 } | 37 } |
| 38 |
| 39 # Generate libc_plan9.h. |
| 40 ../include/plan9/mklibc.rc > ../include/plan9/libc_plan9.h |
38 | 41 |
39 # Clean old generated file that will cause problems in the build. | 42 # Clean old generated file that will cause problems in the build. |
40 rm -f ./pkg/runtime/runtime_defs.go | 43 rm -f ./pkg/runtime/runtime_defs.go |
41 | 44 |
42 # Determine the host compiler toolchain. | 45 # Determine the host compiler toolchain. |
43 eval `{grep '^(CC|LD|O)=' /$objtype/mkfile} | 46 eval `{grep '^(CC|LD|O)=' /$objtype/mkfile} |
44 | 47 |
45 echo '# Building C bootstrap tool.' | 48 echo '# Building C bootstrap tool.' |
46 echo cmd/dist | 49 echo cmd/dist |
47 GOROOT = `{cd .. && pwd} | 50 GOROOT = `{cd .. && pwd} |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 echo '# Building packages and commands for' $GOOS/$GOARCH^. | 93 echo '# Building packages and commands for' $GOOS/$GOARCH^. |
91 $GOTOOLDIR/go_bootstrap install -ccflags $"GO_CCFLAGS -gcflags $"GO_GCFLAGS -ldf
lags $"GO_LDFLAGS -v $pflag std | 94 $GOTOOLDIR/go_bootstrap install -ccflags $"GO_CCFLAGS -gcflags $"GO_GCFLAGS -ldf
lags $"GO_LDFLAGS -v $pflag std |
92 echo | 95 echo |
93 | 96 |
94 rm -f $GOTOOLDIR/go_bootstrap | 97 rm -f $GOTOOLDIR/go_bootstrap |
95 | 98 |
96 if(! ~ $1 --no-banner) | 99 if(! ~ $1 --no-banner) |
97 $GOTOOLDIR/dist banner | 100 $GOTOOLDIR/dist banner |
98 | 101 |
99 status='' | 102 status='' |
LEFT | RIGHT |