public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* gotools patch committed: Build gotools with compiler options
@ 2015-03-12 16:44 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2015-03-12 16:44 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

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  <iant@google.com>

* Makefile.am (GOLINK): Add GOCFLAGS.
* Makefile.in: Rebuild.

[-- Attachment #2: foo.txt --]
[-- Type: text/plain, Size: 512 bytes --]

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
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-12 16:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 16:44 gotools patch committed: Build gotools with compiler options Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).