Skip to content
Snippets Groups Projects
Commit 2e222a2b authored by Christian Ehrhardt's avatar Christian Ehrhardt Committed by Guido Günther
Browse files

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: default avatarChristian Ehrhardt <christian.ehrhardt@canonical.com>
parent 33732546
No related branches found
No related tags found
1 merge request!29Merge changes from experimental
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment