[Pkg-libvirt-commits] [Git][libvirt-team/libvirt][debian/experimental] d/rules: strip symbolic-functions linker option
Guido Günther
gitlab at salsa.debian.org
Thu May 9 18:32:44 BST 2019
Guido Günther pushed to branch debian/experimental at Libvirt Packaging Team / libvirt
Commits:
2e222a2b by Christian Ehrhardt at 2019-05-09T17:32:36Z
d/rules: strip symbolic-functions linker option
This is only set by-default on Ubuntu today.
It mostly works, but as the word mostly implies some cases are different.
Libvirt now became one of them.
As discussed DEB_flag_MAINT_STRIP already is conditional therefore no
need to vendor the check, but better add a comment why/what it does.
Signed-off-by: Christian Ehrhardt <christian.ehrhardt at canonical.com>
- - - - -
1 changed file:
- debian/rules
Changes:
=====================================
debian/rules
=====================================
@@ -5,6 +5,11 @@ DEB_BUILDDATE=$(shell dpkg-parsechangelog -SDate)
DEB_BUILDUSER=$(shell dpkg-parsechangelog -SMaintainer)
NULL=
+# If the build environment sets -Bsymbolic-functions, which is often used as
+# hardening option, that would break libvirt build time self-testing.
+# Therefore let dpkg-buildflag strip that option if present.
+export DEB_LDFLAGS_MAINT_STRIP = -Wl,-Bsymbolic-functions
+
ifneq (,$(findstring $(DEB_HOST_ARCH_OS), linux))
ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64))
WITH_VBOX = --with-vbox
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/commit/2e222a2b0d4f5446a474c6faf70849507ddd5a4d
--
View it on GitLab: https://salsa.debian.org/libvirt-team/libvirt/commit/2e222a2b0d4f5446a474c6faf70849507ddd5a4d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20190509/de13812d/attachment.html>
More information about the Pkg-libvirt-commits
mailing list