--- wscript | 3 +++ 1 file changed, 3 insertions(+) Index: xmms2-0.9.3+g52.xa9cd41b/wscript =================================================================== --- xmms2-0.9.3+g52.xa9cd41b.orig/wscript +++ xmms2-0.9.3+g52.xa9cd41b/wscript @@ -554,6 +554,9 @@ int main() { return 0; } conf.env.DEFINES += ["XMMS_DISABLE_DEPRECATION_WARNINGS"] + # Do not link against unused libraries (make dpkg-shlibdeps happy). + conf.env.LINKFLAGS += ['-Wl,--as-needed'] + return True ####