libgo patch committed: Pass compiler flags to mksysinfo.sh

Submitted by Ian Taylor on Feb. 5, 2011, 2 a.m.

Details

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

Commit Message

Ian Taylor Feb. 5, 2011, 2 a.m.
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

Patch hide | download patch | download mbox

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) $@