This patch changes the gotools to add GOCFLAGS to the build command,
since the command is both compiling and linking.  The main effect of
this is to, by default, build with -g -O2, which previously was not
happening.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

2015-03-12  Ian Lance Taylor  <i...@google.com>

* Makefile.am (GOLINK): Add GOCFLAGS.
* Makefile.in: Rebuild.
Index: gotools/Makefile.am
===================================================================
--- gotools/Makefile.am (revision 220066)
+++ gotools/Makefile.am (working copy)
@@ -39,7 +39,7 @@ GOCFLAGS = $(CFLAGS_FOR_TARGET)
 GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
 
 AM_LDFLAGS = -L $(libgodir) -L $(libgodir)/.libs
-GOLINK = $(GOCOMPILER) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o $@
+GOLINK = $(GOCOMPILER) $(GOCFLAGS) $(AM_GOCFLAGS) $(LDFLAGS) $(AM_LDFLAGS) -o 
$@
 
 cmdsrcdir = $(srcdir)/../libgo/go/cmd
 

Reply via email to