<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/18481">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">RPM spec: fix "E: lto-no-text-in-archive"<br><br>Some opensuse versions failed to build the RPM with:<br><br>libosmo-mtp-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libmtp.a<br>libosmo-sigtran-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libosmo-sigtran.a<br>libosmo-sccp-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libsccp.a<br>libosmo-xua-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libxua.a<br>This archive does not contain a non-empty .text section.  The archive was not<br>created with -ffat-lto-objects option.<br><br>Fix it as described here:<br>https://en.opensuse.org/openSUSE:LTO#Static_libraries<br><br>I've verified in my own OBS namespace, that it works as expected.<br><br>Related: OS#4550<br>Change-Id: Iaa0be46838f279af8ea87e00809dd3babd4fcad2<br>---<br>M contrib/libosmo-sccp.spec.in<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/libosmo-sccp.spec.in b/contrib/libosmo-sccp.spec.in</span><br><span>index b4d7722..b195b1f 100644</span><br><span>--- a/contrib/libosmo-sccp.spec.in</span><br><span>+++ b/contrib/libosmo-sccp.spec.in</span><br><span>@@ -12,6 +12,12 @@</span><br><span> # license that conforms to the Open Source Definition (Version 1.9)</span><br><span> # published by the Open Source Initiative.</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+# Avoid "E: lto-no-text-in-archive"</span><br><span style="color: hsl(120, 100%, 40%);">+# https://en.opensuse.org/openSUSE:LTO#Static_libraries</span><br><span style="color: hsl(120, 100%, 40%);">+%if 0%{?suse_version}</span><br><span style="color: hsl(120, 100%, 40%);">+%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects</span><br><span style="color: hsl(120, 100%, 40%);">+%endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> Name:           libosmo-sccp</span><br><span> Version:        @VERSION@</span><br><span> Release:        0</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/18481">change 18481</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/libosmo-sccp/+/18481"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Iaa0be46838f279af8ea87e00809dd3babd4fcad2 </div>
<div style="display:none"> Gerrit-Change-Number: 18481 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>