diff options
-rw-r--r-- | debian/changelog | 6 | ||||
-rwxr-xr-x | debian/rules | 17 |
2 files changed, 19 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index 5ce21eb02..84766a1f4 100644 --- a/debian/changelog +++ b/debian/changelog | |||
@@ -1,3 +1,9 @@ | |||
1 | openssh (1:4.6p1-4) UNRELEASED; urgency=low | ||
2 | |||
3 | * Don't build PIE executables on hppa, as they crash. | ||
4 | |||
5 | -- Colin Watson <cjwatson@debian.org> Thu, 05 Jul 2007 09:14:19 +0100 | ||
6 | |||
1 | openssh (1:4.6p1-3) unstable; urgency=low | 7 | openssh (1:4.6p1-3) unstable; urgency=low |
2 | 8 | ||
3 | * Only build PIE executables on Linux and NetBSD (closes: #430455). | 9 | * Only build PIE executables on Linux and NetBSD (closes: #430455). |
diff --git a/debian/rules b/debian/rules index c9cde8ce1..926e8674e 100755 --- a/debian/rules +++ b/debian/rules | |||
@@ -13,6 +13,7 @@ OPTFLAGS := -O0 | |||
13 | endif | 13 | endif |
14 | 14 | ||
15 | DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null) | 15 | DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null) |
16 | DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null) | ||
16 | 17 | ||
17 | # Take account of old dpkg-architecture output. | 18 | # Take account of old dpkg-architecture output. |
18 | ifeq ($(DEB_HOST_ARCH_OS),) | 19 | ifeq ($(DEB_HOST_ARCH_OS),) |
@@ -21,12 +22,20 @@ ifeq ($(DEB_HOST_ARCH_OS),) | |||
21 | DEB_HOST_ARCH_OS := hurd | 22 | DEB_HOST_ARCH_OS := hurd |
22 | endif | 23 | endif |
23 | endif | 24 | endif |
25 | ifeq ($(DEB_HOST_ARCH_CPU),) | ||
26 | DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) | ||
27 | ifeq ($(DEB_HOST_ARCH_CPU),x86_64) | ||
28 | DEB_HOST_ARCH_CPU := amd64 | ||
29 | endif | ||
30 | endif | ||
24 | 31 | ||
25 | ifneq (,$(findstring :$(DEB_HOST_ARCH_OS):,:linux:knetbsd:)) | 32 | ifneq (,$(findstring :$(DEB_HOST_ARCH_OS):,:linux:knetbsd:)) |
26 | # Use position-independent executables to take advantage of address space | 33 | ifneq ($(DEB_HOST_ARCH_CPU),hppa) |
27 | # layout randomisation. TODO: This should be done in configure. | 34 | # Use position-independent executables to take advantage of address space |
28 | PIE_CFLAGS := -fPIE | 35 | # layout randomisation. TODO: This should be done in configure. |
29 | PIE_LDFLAGS := -fPIE -pie | 36 | PIE_CFLAGS := -fPIE |
37 | PIE_LDFLAGS := -fPIE -pie | ||
38 | endif | ||
30 | endif | 39 | endif |
31 | 40 | ||
32 | ifeq (,$(wildcard /usr/bin/po2debconf)) | 41 | ifeq (,$(wildcard /usr/bin/po2debconf)) |