[Pkg-bitcoin-commits] [litecoin] 04/05: Build with "-fPIC" and "--disable hardening" (Closes: #777983)
Dmitry Smirnov
onlyjob at moszumanska.debian.org
Mon Jul 27 00:39:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
onlyjob pushed a commit to branch master
in repository litecoin.
commit d0329c1
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date: Mon Jul 27 00:17:16 2015
Build with "-fPIC" and "--disable hardening" (Closes: #777983)
"--disable hardening" prevents overriding build flags from the environment
and fixes error:
#error "You must build your code with position independent code if Qt
was built with -reduce-relocations."
Compile your code with -fPIC (-fPIE is not enough).
---
debian/rules | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/debian/rules b/debian/rules
index ab754df..b19ad53 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,7 @@
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CXXFLAGS_MAINT_APPEND= -fPIC
export QT_SELECT=5
%:
@@ -17,9 +18,13 @@ override_dh_auto_configure:
--disable-shared \
--disable-static \
--disable-ccache \
+ --disable-hardening \
--with-incompatible-bdb \
--with-gui=qt5 \
+## "--disable-hardening" disables upstream's hardening that overrides build
+## flags -- in particular it drops "-fPIC" which leads to FTBFS with GCC-5
+## (see #777983)
override_dh_auto_build:
dh_auto_build --parallel
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/litecoin.git
More information about the Pkg-bitcoin-commits
mailing list