Patchwork libgo patch committed: Define CC_FOR_BUILD in Makefile

login
register
mail settings
Submitter Ian Taylor
Date July 11, 2011, 8:27 p.m.
Message ID <mcr4o2ssguy.fsf@coign.corp.google.com>
Download mbox | patch
Permalink /patch/104284/
State New
Headers show

Comments

Ian Taylor - July 11, 2011, 8:27 p.m.
This patch to libgo defines CC_FOR_BUILD in Makefile, to make it more
likely to be able to build code in the libgo subdirectory.  Bootstrapped
on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

Patch

diff -r 4732400182b5 libgo/configure.ac
--- a/libgo/configure.ac	Mon Jul 11 13:13:33 2011 -0700
+++ b/libgo/configure.ac	Mon Jul 11 13:25:16 2011 -0700
@@ -42,6 +42,9 @@ 
 AC_SUBST(enable_shared)
 AC_SUBST(enable_static)
 
+CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
+AC_SUBST(CC_FOR_BUILD)
+
 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
 AC_SUBST(WARN_FLAGS)