Skip to content

cmd/dist: request for system CFLAGS/LDFLAGS where ever CC is invoked #6882

Description

@gopherbot

by vbatts:

From the question raised on golang-nuts:
https://groups.google.com/forum/#!topic/golang-nuts/SJn48BkCUqA

What steps will reproduce the problem?
1. CFLAGS=" -WILL " LDFLAGS=" -BREAK " ./all.bash
2.
3.


What is the expected output?

# Building C bootstrap tool.
cmd/dist
gcc: error: unrecognized command line option ‘-WILL’


What do you see instead?
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
[...]


Which compiler are you using (5g, 6g, 8g, gccgo)?
n/a


Which operating system are you using?
# cat /etc/*release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Red Hat Enterprise Linux Workstation release 6.5 (Santiago)
Red Hat Enterprise Linux Workstation release 6.5 (Santiago)


Which version are you using?  (run 'go version')
go1.2.src.tar.gz


Please provide any additional information below.
Ideally these values would not only apply for the cmd/dist and bootstrapping, but
anywhere that CC is invoked on this system.

Since the CC value used for build of ./make.bash is persisted, it may be worth having an
optional CC_FINAL, in the case that CC was a build-time only explicit path.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions