diff options
author | Elias Naur <elias.naur@gmail.com> | 2013-02-01 08:35:33 -0800 |
---|---|---|
committer | Elias Naur <elias.naur@gmail.com> | 2013-02-01 08:35:33 -0800 |
commit | 3630b4bd29e40e84b7a00ca0af6fc037edd6a309 (patch) | |
tree | e8126aa02d64534797dddab4af58acda23a7bcc4 /src/make.bash | |
parent | ef949bdad8314d06b919565d21256226ed12561a (diff) | |
download | go-3630b4bd29e40e84b7a00ca0af6fc037edd6a309.tar.gz |
cmd/6c, cmd/6g: add flag to support large-model code generation
Added the -pic flag to 6c and 6g to avoid assembler instructions that
cannot?use RIP-relative adressing. This is needed to support the -shared mode
in 6l.
See also:
https://codereview.appspot.com/6926049
https://codereview.appspot.com/6822078
R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7064048
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-x | src/make.bash | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/make.bash b/src/make.bash index 1190b93ff..6c78f93ce 100755 --- a/src/make.bash +++ b/src/make.bash @@ -23,6 +23,9 @@ # GO_LDFLAGS: Additional 5l/6l/8l arguments to use when # building the commands. # +# GO_CCFLAGS: Additional 5c/6c/8c arguments to use when +# building. +# # CGO_ENABLED: Controls cgo usage during the build. Set it to 1 # to include all cgo related files, .c and .go file with "cgo" # build directive, in the build. Set it to 0 to ignore them. @@ -129,12 +132,12 @@ echo if [ "$GOHOSTARCH" != "$GOARCH" -o "$GOHOSTOS" != "$GOOS" ]; then echo "# Building packages and commands for host, $GOHOSTOS/$GOHOSTARCH." GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH \ - "$GOTOOLDIR"/go_bootstrap install -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std + "$GOTOOLDIR"/go_bootstrap install -ccflags "$GO_CCFLAGS" -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std echo fi echo "# Building packages and commands for $GOOS/$GOARCH." -"$GOTOOLDIR"/go_bootstrap install -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std +"$GOTOOLDIR"/go_bootstrap install $GO_FLAGS -ccflags "$GO_CCFLAGS" -gcflags "$GO_GCFLAGS" -ldflags "$GO_LDFLAGS" -v std echo rm -f "$GOTOOLDIR"/go_bootstrap |