<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19914">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pjproject_bundled: Fix cross-compilation with SSL libs.<br><br>Asterisk makefiles auto-detect SSL library availability,<br>then they assume that pjproject makefiles will also autodetect<br>an SSL library at the same time, so they do not pass on the<br>autodetection result to pjproject.<br><br>This normally works, except the pjproject makefiles disables<br>autodetection when cross-compiling.<br><br>Fix by explicitly configuring pjproject to use SSL if we<br>have been told to use it or it was autodetected<br><br>ASTERISK-30424 #close<br><br>Change-Id: I8fe2999ea46710e21d1d55a1bed92769c6ebded9<br>---<br>M configure<br>M third-party/pjproject/configure.m4<br>2 files changed, 32 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/14/19914/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure b/configure</span><br><span>index 168d791..7e3d85a 100755</span><br><span>--- a/configure</span><br><span>+++ b/configure</span><br><span>@@ -10994,12 +10994,16 @@</span><br><span> y|ye|yes)</span><br><span> # Not to mention SSL is the default in PJProject and means "autodetect".</span><br><span> # In Asterisk, "./configure --with-ssl" means "must be present".</span><br><span style="color: hsl(0, 100%, 40%);">- PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS}"</span><br><span style="color: hsl(120, 100%, 40%);">+ PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl"</span><br><span> ;;</span><br><span> *)</span><br><span> PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl=${with_ssl}"</span><br><span> ;;</span><br><span> esac</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $PBX_OPENSSL -eq 1 ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl"</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span> fi</span><br><span> </span><br><span> # Determine if we're doing an out-of-tree build...</span><br><span>diff --git a/third-party/pjproject/configure.m4 b/third-party/pjproject/configure.m4</span><br><span>index fb95220..0995cfc 100644</span><br><span>--- a/third-party/pjproject/configure.m4</span><br><span>+++ b/third-party/pjproject/configure.m4</span><br><span>@@ -74,12 +74,16 @@</span><br><span> y|ye|yes)</span><br><span> # Not to mention SSL is the default in PJProject and means "autodetect".</span><br><span> # In Asterisk, "./configure --with-ssl" means "must be present".</span><br><span style="color: hsl(0, 100%, 40%);">- PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS}"</span><br><span style="color: hsl(120, 100%, 40%);">+ PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl"</span><br><span> ;;</span><br><span> *)</span><br><span> PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl=${with_ssl}"</span><br><span> ;;</span><br><span> esac</span><br><span style="color: hsl(120, 100%, 40%);">+ else</span><br><span style="color: hsl(120, 100%, 40%);">+ if test $PBX_OPENSSL -eq 1 ; then</span><br><span style="color: hsl(120, 100%, 40%);">+ PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl"</span><br><span style="color: hsl(120, 100%, 40%);">+ fi</span><br><span> fi</span><br><span> </span><br><span> # Determine if we're doing an out-of-tree build...</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19914">change 19914</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/+/19914"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: I8fe2999ea46710e21d1d55a1bed92769c6ebded9 </div>
<div style="display:none"> Gerrit-Change-Number: 19914 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-CC: Nick French <nickfrench@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>