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

ci/unstable
Felix Geyer 11 years ago
parent 4c2506bfcb
commit 53df475c27

1
debian/changelog vendored

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

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

Loading…
Cancel
Save