libgo patch committed: Define CC_FOR_BUILD in Makefile

Submitted by Ian Taylor on July 11, 2011, 8:27 p.m.

Details

Message ID mcr4o2ssguy.fsf@coign.corp.google.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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)