Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/dist: request for system CFLAGS/LDFLAGS where ever CC is invoked #6882
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.