Source: kdiff3
Version: 0.9.97-3
Severity: wishlist
Tags: patch

Hi,

currently the KDE version of kdiff3 gets overlinked with libraries
it does not actually use (e.g. libnepomuk, libQt3Support, etc).
Thus, it should be safe to link in as-needed mode and avoid linking
to unused libraries.

Attached there is a patch for this, which enables the flag using
dpkg-buildflags.

Thanks,
-- 
Pino
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,8 @@
 
 DEB_COMPRESS_EXCLUDE := ".docbook" 
 
+export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/cmake.mk
 # include /usr/share/cdbs/1/rules/simple-patchsys.mk

Reply via email to