diff mbox

openssh: fix static compilation

Message ID 20150829074635.GA14683@waldemar-brodkorb.de
State Accepted
Headers show

Commit Message

Waldemar Brodkorb Aug. 29, 2015, 7:46 a.m. UTC
PIE and static doesn't work on Linux.

Fixes:
http://autobuild.buildroot.net/results/dce/dce0202e039f4636d68532c4aab8738938b76650/

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 package/openssh/openssh.mk |    4 ++++
 1 file changed, 4 insertions(+)

Comments

Thomas Petazzoni Aug. 29, 2015, 8:51 a.m. UTC | #1
Dear Waldemar Brodkorb,

On Sat, 29 Aug 2015 09:46:35 +0200, Waldemar Brodkorb wrote:
> PIE and static doesn't work on Linux.
> 
> Fixes:
> http://autobuild.buildroot.net/results/dce/dce0202e039f4636d68532c4aab8738938b76650/
> 
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
>  package/openssh/openssh.mk |    4 ++++
>  1 file changed, 4 insertions(+)

Applied, thanks.

Thomas
diff mbox

Patch

diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index b95914b..fb5779e 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -26,6 +26,10 @@  endef
 ifeq ($(BR2_arc),y)
 OPENSSH_CONF_OPTS += --without-pie
 endif
+# PIE and static does not work on Linux
+ifeq ($(BR2_STATIC_LIBS),y)
+OPENSSH_CONF_OPTS += --without-pie
+endif
 
 OPENSSH_DEPENDENCIES = zlib openssl