[DHG_packages] 01/01: Merge Ubuntu PIE fixes on amd64 and ppc64el
Gianfranco Costamagna
locutusofborg-guest at moszumanska.debian.org
Thu Jun 2 13:01:22 UTC 2016
This is an automated email from the git hooks/post-receive script.
locutusofborg-guest pushed a commit to branch experimental
in repository DHG_packages.
commit fdfd4bee89ea15317eab4d78360d4ad8842dcf29
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Thu Jun 2 15:00:56 2016 +0200
Merge Ubuntu PIE fixes on amd64 and ppc64el
---
p/ghc/debian/changelog | 4 ++++
p/ghc/debian/rules | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/p/ghc/debian/changelog b/p/ghc/debian/changelog
index 28bc672..378e001 100644
--- a/p/ghc/debian/changelog
+++ b/p/ghc/debian/changelog
@@ -1,7 +1,11 @@
ghc (8.0.1-2) UNRELEASED; urgency=medium
+ [ Joachim Breitner ]
* Merge from unstable (up to 7.0.3-9)
+ [ Matthias Klose ]
+ * Disable PIE on amd64 and ppc64el.
+
-- Joachim Breitner <nomeata at debian.org> Mon, 23 May 2016 16:15:30 +0200
ghc (8.0.1-1) experimental; urgency=medium
diff --git a/p/ghc/debian/rules b/p/ghc/debian/rules
index 54379b5..3640423 100755
--- a/p/ghc/debian/rules
+++ b/p/ghc/debian/rules
@@ -30,11 +30,13 @@ export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
# confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
#endif
+pie_archs = amd64 ppc64el s390x
+
ProjectVersion=$(shell cat VERSION)
GHC=$(firstword $(shell bash -c "type -p ghc"))
EXTRA_CONFIGURE_FLAGS=--with-ghc="$(GHC)"
-ifeq (s390x,$(DEB_HOST_ARCH))
+ifneq (,$(filter $(DEB_HOST_ARCH),$(pie_archs)))
EXTRA_CONFIGURE_FLAGS += \
CONF_CC_OPTS_STAGE2=-fno-PIE \
CONF_GCC_LINKER_OPTS_STAGE2=-no-pie \
@@ -61,7 +63,7 @@ endif
ifeq (armel,$(DEB_HOST_ARCH))
patch -p1 < debian/patches/armel-revert-ghci-fixes.patch
endif
-ifeq (s390x,$(DEB_HOST_ARCH))
+ifneq (,$(filter $(DEB_HOST_ARCH),$(pie_archs)))
echo "SRC_CC_OPTS += -fno-PIE" >> mk/build.mk
echo "SRC_LD_OPTS += -no-pie" >> mk/build.mk
endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git
More information about the Pkg-haskell-commits
mailing list