Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [pull request] Pull request for branch for-2011.02/openssl-fix
@ 2011-02-07  9:55 Thomas Petazzoni
  2011-02-07  9:55 ` [Buildroot] [PATCH 1/1] openssl: pass LDFLAGS to fix incorrect link Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2011-02-07  9:55 UTC (permalink / raw)
  To: buildroot

The following changes since commit 9f31e2ffa005095206824e08f69da75503e998ab:
  Peter Korsgaard (1):
        busybox: 1.18.2 fixes for ping, tar and udhcp

are available in the git repository at:

  git://git.busybox.net/~tpetazzoni/git/buildroot for-2011.02/openssl-fix

Thomas Petazzoni (1):
      openssl: pass LDFLAGS to fix incorrect link

 package/openssh/openssh.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Thanks,
-- 
Thomas Petazzoni

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] openssl: pass LDFLAGS to fix incorrect link
  2011-02-07  9:55 [Buildroot] [pull request] Pull request for branch for-2011.02/openssl-fix Thomas Petazzoni
@ 2011-02-07  9:55 ` Thomas Petazzoni
  2011-02-07 13:34   ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2011-02-07  9:55 UTC (permalink / raw)
  To: buildroot

We already pass the LD variable to openssl in order to use gcc as the
driver for the link process, instead of directly using the ld
linker. However, we were not passing LDFLAGS so that the compiler
flags are passed, which means that with multilib toolchains, the
incorrect library variant could be used at link time, leading to
invalid binaries (partly ARMv4, partly ARMv5) or broken compilation
(when the build took place in soft-float, but the link stage takes
place against hard-float libraries).

This fixes a problem reported on IRC by amo-ej1 when compiling ssh on
PowerPC e500v2 with a CodeSourcery toolchain ("crtbegin.o uses hard
float, sshd uses soft float").

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/openssh/openssh.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index 82c64d6..3db7156 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -6,7 +6,7 @@
 
 OPENSSH_VERSION = 5.6p1
 OPENSSH_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
-OPENSSH_CONF_ENV = LD="$(TARGET_CC)"
+OPENSSH_CONF_ENV = LD="$(TARGET_CC)" LDFLAGS="$(TARGET_CFLAGS)"
 OPENSSH_CONF_OPT = --libexecdir=/usr/lib --disable-lastlog --disable-utmp \
 		--disable-utmpx --disable-wtmp --disable-wtmpx --disable-strip
 
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] openssl: pass LDFLAGS to fix incorrect link
  2011-02-07  9:55 ` [Buildroot] [PATCH 1/1] openssl: pass LDFLAGS to fix incorrect link Thomas Petazzoni
@ 2011-02-07 13:34   ` Peter Korsgaard
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2011-02-07 13:34 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> We already pass the LD variable to openssl in order to use gcc as the
 Thomas> driver for the link process, instead of directly using the ld
 Thomas> linker. However, we were not passing LDFLAGS so that the compiler
 Thomas> flags are passed, which means that with multilib toolchains, the
 Thomas> incorrect library variant could be used at link time, leading to
 Thomas> invalid binaries (partly ARMv4, partly ARMv5) or broken compilation
 Thomas> (when the build took place in soft-float, but the link stage takes
 Thomas> place against hard-float libraries).

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-07 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-07  9:55 [Buildroot] [pull request] Pull request for branch for-2011.02/openssl-fix Thomas Petazzoni
2011-02-07  9:55 ` [Buildroot] [PATCH 1/1] openssl: pass LDFLAGS to fix incorrect link Thomas Petazzoni
2011-02-07 13:34   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox