From 53df475c270e29092498b4639f2a2f7d8bd31802 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sun, 3 Aug 2014 23:34:40 +0200 Subject: [PATCH] Add -Wl,--as-needed to LDFLAGS to avoid overlinking. --- debian/changelog | 1 + debian/rules | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/changelog b/debian/changelog index 6126447a0..899c54d31 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,7 @@ cmake (3.0.0-1) UNRELEASED; urgency=medium * Update install files. * Pass --list-missing to dh_install. * Use sphinxdoc debhelper sequence. + * Add -Wl,--as-needed to LDFLAGS to avoid overlinking. -- Felix Geyer Sun, 03 Aug 2014 20:21:55 +0200 diff --git a/debian/rules b/debian/rules index db9a4721e..5e56b2419 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,7 @@ export DEB_CXXFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) export DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS) +export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))