Add -Wl,--as-needed to LDFLAGS to avoid overlinking.

This commit is contained in:
Felix Geyer 2014-08-03 23:34:40 +02:00
parent 4c2506bfcb
commit 53df475c27
2 changed files with 2 additions and 0 deletions

1
debian/changelog vendored
View File

@ -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 <fgeyer@debian.org> Sun, 03 Aug 2014 20:21:55 +0200

1
debian/rules vendored
View File

@ -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)))