Patchwork libgo patch committed: Pass compiler flags to mksysinfo.sh

login
register
mail settings
Submitter Ian Taylor
Date Feb. 5, 2011, 2 a.m.
Message ID <mcrwrlfxmt8.fsf@google.com>
Download mbox | patch
Permalink /patch/81987/
State New
Headers show

Comments

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

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