aboutsummaryrefslogtreecommitdiff
path: root/package/openssh
diff options
context:
space:
mode:
authorGravatar Waldemar Brodkorb <wbx@openadk.org>2016-07-11 16:35:14 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-24 21:44:22 +0200
commit3c93901bcd2f77232581ca82a3a5f741aa9e6345 (patch)
tree63d3b509fa5ecae56f17772fdd034ab7318dc96a /package/openssh
parent58b573c252139c6e6ec7a14964ed6810502aaf23 (diff)
downloadbuildroot-3c93901bcd2f77232581ca82a3a5f741aa9e6345.tar.gz
buildroot-3c93901bcd2f77232581ca82a3a5f741aa9e6345.tar.bz2
toolchain: add hidden symbol for PIE support
uClibc-ng does not support PIE for some architectures as arc and m68k. It isn't implemented in the static linking case, too. With musl toolchains you might have static PIE support with little patching of gcc. Static linking for GNU libc isn't enabled in buildroot. Fixup any package using special treatment of PIE. (grep -ir pie package/*/*.mk) Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> [Thomas: use positive logic.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/openssh')
-rw-r--r--package/openssh/openssh.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index 856646c073..8f85d0a8f4 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -22,12 +22,7 @@ define OPENSSH_USERS
sshd -1 sshd -1 * - - - SSH drop priv user
endef
-# uClibc toolchain for ARC doesn't support PIE at the moment
-ifeq ($(BR2_arc),y)
-OPENSSH_CONF_OPTS += --without-pie
-endif
-# PIE and static does not work on Linux
-ifeq ($(BR2_STATIC_LIBS),y)
+ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
OPENSSH_CONF_OPTS += --without-pie
endif