<p>Nico Huber has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21363">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Use xcompile proposed CFLAGS for Ada<br><br>We don't output special ADAFLAGS in xcompile but its CFLAGS are<br>compatible with and necessary for Ada too. So use the latter and<br>make sure we use them for libgnat too.<br><br>Fixes i386 builds with x86_64 toolchain.<br><br>Change-Id: I0d13f182acfaa9bd1b608edd8a508c4ceedef3b3<br>Signed-off-by: Nico Huber <nico.h@gmx.de><br>---<br>M src/lib/gnat/Makefile.inc<br>M toolchain.inc<br>2 files changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/21363/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/lib/gnat/Makefile.inc b/src/lib/gnat/Makefile.inc<br>index 9c68624..5c4c510 100644<br>--- a/src/lib/gnat/Makefile.inc<br>+++ b/src/lib/gnat/Makefile.inc<br>@@ -24,6 +24,7 @@<br>        -gnatg \<br>      -gnatpg \<br>     -I$$(src)/lib/gnat/ \<br>+        $$(CFLAGS_$(1)) \<br> <br> libgnat-$(1)-y += a-unccon.ads<br> libgnat-$(1)-y += ada.ads<br>diff --git a/toolchain.inc b/toolchain.inc<br>index d9b11f0..936eb14 100644<br>--- a/toolchain.inc<br>+++ b/toolchain.inc<br>@@ -129,7 +129,7 @@<br> STRIP_$(1) := $(STRIP_$(2))<br> READELF_$(1) := $(READELF_$(2))<br> CFLAGS_$(1) = $$(CFLAGS_common) $$(CFLAGS_$(2))<br>-ADAFLAGS_$(1) = --RTS=$$(obj)/libgnat-$(2)/ $$(ADAFLAGS_common) $$(ADAFLAGS_$(2))<br>+ADAFLAGS_$(1) = --RTS=$$(obj)/libgnat-$(2)/ $$(ADAFLAGS_common) $$(CFLAGS_$(2))<br> CPPFLAGS_$(1) = $$(CPPFLAGS_common) $$(CPPFLAGS_$(2)) -D__ARCH_$(2)__<br> COMPILER_RT_$(1) := $$(COMPILER_RT_$(2))<br> COMPILER_RT_FLAGS_$(1) := $$(COMPILER_RT_FLAGS_$(2))<br></pre><p>To view, visit <a href="https://review.coreboot.org/21363">change 21363</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21363"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I0d13f182acfaa9bd1b608edd8a508c4ceedef3b3 </div>
<div style="display:none"> Gerrit-Change-Number: 21363 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nico Huber <nico.h@gmx.de> </div>