From 73d678c4a3f47211587f7059a132fdf085650a47 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 23 Oct 2016 12:31:19 -0700 Subject: disable PIE hardening --- debian/rules | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/rules b/debian/rules index efa37f3..963069e 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,9 @@ #!/usr/bin/make -f -# upstream's Makefile passes these on through ghc to gcc -export DEB_BUILD_MAINT_OPTIONS = hardening=+all +# Debian's ghc cannot compile anything with -fPIC at present, so we +# have to disable PIE hardening to avoid build failures on archs like +# amd64. See discussion on debian-haskell@lists.debian.org +export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie # cabal likes to write to $HOME, so use Setup.hs directly export BUILDER = ./Setup -- cgit v1.2.3