<p>Jean Aunis - Prescom has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/10918">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">build : Fix cross-compilation errors<br><br>Bundled pjproject and jansson must be configured with the host and build<br>parameters provided to the configure script.<br><br>ASTERISK-28250<br><br>Change-Id: If0a76e52a87d4ab82b7d4c72d27d8759ca931880<br>---<br>M configure<br>M third-party/jansson/configure.m4<br>M third-party/pjproject/configure.m4<br>3 files changed, 8 insertions(+), 8 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/18/10918/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure b/configure</span><br><span>index 1a3493c..af896e1 100755</span><br><span>--- a/configure</span><br><span>+++ b/configure</span><br><span>@@ -9252,10 +9252,10 @@</span><br><span> </span><br><span>   this_host=$(./config.sub $(./config.guess))</span><br><span>  if test "$build" != "$this_host" ; then</span><br><span style="color: hsl(0, 100%, 40%);">-             JANSSON_CONFIGURE_OPTS+=" --build=$build"</span><br><span style="color: hsl(120, 100%, 40%);">+           JANSSON_CONFIGURE_OPTS+=" --build=$build_alias"</span><br><span>    fi</span><br><span>   if test "$host" != "$this_host" ; then</span><br><span style="color: hsl(0, 100%, 40%);">-              JANSSON_CONFIGURE_OPTS+=" --host=$host"</span><br><span style="color: hsl(120, 100%, 40%);">+             JANSSON_CONFIGURE_OPTS+=" --host=$host_alias"</span><br><span>      fi</span><br><span> </span><br><span>       export TAR PATCH SED NM EXTERNALS_CACHE_DIR AST_DOWNLOAD_CACHE DOWNLOAD_TO_STDOUT DOWNLOAD_TIMEOUT DOWNLOAD MD5 CAT CUT GREP</span><br><span>@@ -9373,10 +9373,10 @@</span><br><span> </span><br><span>   this_host=$(./config.sub $(./config.guess))</span><br><span>  if test "$build" != "$this_host" ; then</span><br><span style="color: hsl(0, 100%, 40%);">-             PJPROJECT_CONFIGURE_OPTS+=" --build=$build"</span><br><span style="color: hsl(120, 100%, 40%);">+         PJPROJECT_CONFIGURE_OPTS+=" --build=$build_alias"</span><br><span>  fi</span><br><span>   if test "$host" != "$this_host" ; then</span><br><span style="color: hsl(0, 100%, 40%);">-              PJPROJECT_CONFIGURE_OPTS+=" --host=$host"</span><br><span style="color: hsl(120, 100%, 40%);">+           PJPROJECT_CONFIGURE_OPTS+=" --host=$host_alias"</span><br><span>    fi</span><br><span>   # This was a copy of the autoconf generated code from the root ./configure.</span><br><span>  # Hopefully, when you read this, the code is still the same.</span><br><span>diff --git a/third-party/jansson/configure.m4 b/third-party/jansson/configure.m4</span><br><span>index 9b10cad..4570de1 100644</span><br><span>--- a/third-party/jansson/configure.m4</span><br><span>+++ b/third-party/jansson/configure.m4</span><br><span>@@ -49,10 +49,10 @@</span><br><span>      AC_ARG_VAR([JANSSON_CONFIGURE_OPTS],[Additional configure options to pass to bundled jansson])</span><br><span>       this_host=$(./config.sub $(./config.guess))</span><br><span>  if test "$build" != "$this_host" ; then</span><br><span style="color: hsl(0, 100%, 40%);">-             JANSSON_CONFIGURE_OPTS+=" --build=$build"</span><br><span style="color: hsl(120, 100%, 40%);">+           JANSSON_CONFIGURE_OPTS+=" --build=$build_alias"</span><br><span>    fi</span><br><span>   if test "$host" != "$this_host" ; then</span><br><span style="color: hsl(0, 100%, 40%);">-              JANSSON_CONFIGURE_OPTS+=" --host=$host"</span><br><span style="color: hsl(120, 100%, 40%);">+             JANSSON_CONFIGURE_OPTS+=" --host=$host_alias"</span><br><span>      fi</span><br><span> </span><br><span>       export TAR PATCH SED NM EXTERNALS_CACHE_DIR AST_DOWNLOAD_CACHE DOWNLOAD_TO_STDOUT DOWNLOAD_TIMEOUT DOWNLOAD MD5 CAT CUT GREP</span><br><span>diff --git a/third-party/pjproject/configure.m4 b/third-party/pjproject/configure.m4</span><br><span>index 8541710..9175a11 100644</span><br><span>--- a/third-party/pjproject/configure.m4</span><br><span>+++ b/third-party/pjproject/configure.m4</span><br><span>@@ -49,10 +49,10 @@</span><br><span>      AC_ARG_VAR([PJPROJECT_CONFIGURE_OPTS],[Additional configure options to pass to bundled pjproject])</span><br><span>   this_host=$(./config.sub $(./config.guess))</span><br><span>  if test "$build" != "$this_host" ; then</span><br><span style="color: hsl(0, 100%, 40%);">-             PJPROJECT_CONFIGURE_OPTS+=" --build=$build"</span><br><span style="color: hsl(120, 100%, 40%);">+         PJPROJECT_CONFIGURE_OPTS+=" --build=$build_alias"</span><br><span>  fi</span><br><span>   if test "$host" != "$this_host" ; then</span><br><span style="color: hsl(0, 100%, 40%);">-              PJPROJECT_CONFIGURE_OPTS+=" --host=$host"</span><br><span style="color: hsl(120, 100%, 40%);">+           PJPROJECT_CONFIGURE_OPTS+=" --host=$host_alias"</span><br><span>    fi</span><br><span>   # This was a copy of the autoconf generated code from the root ./configure.</span><br><span>  # Hopefully, when you read this, the code is still the same.</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10918">change 10918</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/10918"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If0a76e52a87d4ab82b7d4c72d27d8759ca931880 </div>
<div style="display:none"> Gerrit-Change-Number: 10918 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jean Aunis - Prescom <jean.aunis@prescom.fr> </div>