<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 25 August 2013 18:27, Steve M. Robbins <span dir="ltr"><<a href="mailto:steve@sumost.ca" target="_blank">steve@sumost.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
OK, that seems plausible. My preference, then, is to leave the patch in<br>
Ubuntu utill such time that Debian needs it; e.g. it's autobuilders turn on -<br>
Wl,as-needed.<br></blockquote><div><br></div><div>That is your call, but I would prefer there to be no delta between the Debian and Ubuntu packages.<br><br></div><div>Nothing stops us from enabling -Wl,--as-needed for the Debian build now.<br>
</div><div>The attached patch to debian/rules does that and should fix the following dpkg-shlibdeps warnings (from the Debian buildd amd64 log):<br><br>dh_shlibdeps -L libinventor1 -l debian/tmp/usr/lib<br>dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/libinventor1/usr/lib/libInventorXt.so.1.0.0 was not linked against libXext.so.6 (it uses none of the library's symbols)<br>
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/inventor-clients/usr/bin/ivview debian/inventor-clients/usr/bin/SceneViewer were not linked against libGLw.so.1 (they use none of the library's symbols)<br>
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/inventor-demo/usr/lib/inventor/qmorf debian/inventor-demo/usr/lib/inventor/noodle debian/inventor-demo/usr/lib/inventor/revo debian/inventor-demo/usr/lib/inventor/gview debian/inventor-demo/usr/lib/inventor/SceneViewer debian/inventor-demo/usr/lib/inventor/maze debian/inventor-demo/usr/lib/inventor/drop debian/inventor-demo/usr/lib/inventor/textomatic were not linked against libGLw.so.1 (they use none of the library's symbols)<br>
<br></div><div>Removing libraries due to --as-needed might also produce binaries with different behaviour at run time only [1]. I will subscribe to inventor bugs in Ubuntu to watch out for this, as well as do some testing of my own.<br>
<br></div><div><br>[1] <a href="https://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries">https://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries</a><br></div></div></div></div>