<p>Guido Falsi has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11238">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">core/buildsystem: check the actual compiler being version<br><br>Make compiler check use the output of the actual compiler being<br>used as reported by the CC variable, instead of unconditionally<br>running the "gcc" binary.<br><br>ASTERISK-28374<br><br>Change-Id: Icaacf6d93686ad21076878aa1504a23b4fc9d0f4<br>---<br>M Makefile.rules<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/38/11238/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Makefile.rules b/Makefile.rules</span><br><span>index dc23a9e..cfd2c1e 100644</span><br><span>--- a/Makefile.rules</span><br><span>+++ b/Makefile.rules</span><br><span>@@ -68,7 +68,7 @@</span><br><span> endif</span><br><span> </span><br><span> # gcc version 8.2.1 and above must have partial-inlining disabled to avoid documented bug</span><br><span style="color: hsl(0, 100%, 40%);">-GCC_VER_GTE821:=$(shell expr `gcc --version | grep ^gcc | cut -d ' ' -f 3 | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 80201)</span><br><span style="color: hsl(120, 100%, 40%);">+GCC_VER_GTE821:=$(shell expr `$(CC) --version | grep ^gcc | cut -d ' ' -f 3 | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 80201)</span><br><span> ifeq ($(GCC_VER_GTE821),1)</span><br><span>     OPTIMIZE+=-fno-partial-inlining</span><br><span> endif</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11238">change 11238</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.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://gerrit.asterisk.org/c/asterisk/+/11238"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: Icaacf6d93686ad21076878aa1504a23b4fc9d0f4 </div>
<div style="display:none"> Gerrit-Change-Number: 11238 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Guido Falsi <madpilot@freebsd.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>