On 25 August 2013 18:27, Steve M. Robbins <[email protected]> wrote: > OK, that seems plausible. My preference, then, is to leave the patch in > Ubuntu utill such time that Debian needs it; e.g. it's autobuilders turn > on - > Wl,as-needed. >
That is your call, but I would prefer there to be no delta between the Debian and Ubuntu packages. Nothing stops us from enabling -Wl,--as-needed for the Debian build now. The attached patch to debian/rules does that and should fix the following dpkg-shlibdeps warnings (from the Debian buildd amd64 log): dh_shlibdeps -L libinventor1 -l debian/tmp/usr/lib 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) 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) 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) 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. [1] https://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries
inventor-wl-as-needed.patch
Description: Binary data

