diff mbox

libgo patch committed: Pass compiler flags to mksysinfo.sh

Message ID mcrwrlfxmt8.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor Feb. 5, 2011, 2 a.m. UTC
This patch to libgo passes the compiler flags to mksysinfo.sh, so that
it knows how to find header files when building a cross-compiler.
Bootstrapped on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian
diff mbox

Patch

diff -r e07be98abbdd libgo/Makefile.am
--- a/libgo/Makefile.am	Thu Feb 03 16:47:23 2011 -0800
+++ b/libgo/Makefile.am	Fri Feb 04 17:56:17 2011 -0800
@@ -2608,7 +2608,7 @@ 
 
 sysinfo.go: s-sysinfo; @true
 s-sysinfo: $(srcdir)/mksysinfo.sh config.h
-	CC="$(CC)" $(SHELL) $(srcdir)/mksysinfo.sh
+	CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh
 	$(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
 	$(STAMP) $@