From patchwork Sat Feb 5 02:00:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: libgo patch committed: Pass compiler flags to mksysinfo.sh From: Ian Taylor X-Patchwork-Id: 81987 Message-Id: To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Date: Fri, 04 Feb 2011 18:00:35 -0800 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 -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) $@