Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] openssl: Fix build on ARM with GCC 4.6.x
Date: Thu, 1 Mar 2012 20:10:32 +0200	[thread overview]
Message-ID: <20120301181031.GA3915@tarshish> (raw)
In-Reply-To: <20120301153201.58f81290@gmail.com>

Hi Ismael,

On Thu, Mar 01, 2012 at 03:32:01PM -0200, Ismael Luceno wrote:
> On Thu, 1 Mar 2012 07:37:27 +0200
> Baruch Siach <baruch@tkos.co.il> wrote:
> > On Wed, Feb 29, 2012 at 09:27:57PM -0200, Ismael Luceno wrote:
> > > 
> > > Signed-off-by: Ismael Luceno <ismael.luceno@gmail.com>
> > > ---
> > >  package/openssl/openssl.mk |    7 +++++++
> > >  1 files changed, 7 insertions(+), 0 deletions(-)
> > > 
> > > diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
> > > index cb29fe4..fda935a 100644
> > > --- a/package/openssl/openssl.mk
> > > +++ b/package/openssl/openssl.mk
> > > @@ -9,7 +9,14 @@ OPENSSL_SITE = http://www.openssl.org/source
> > >  OPENSSL_INSTALL_STAGING = YES
> > >  OPENSSL_DEPENDENCIES = zlib
> > >  OPENSSL_TARGET_ARCH = generic32
> > > +
> > > +ifeq ($(BR2_GCC_VERSION_4_6_X)-$(ARCH),y-arm)
> > > +# workaround for gcc issue
> > > +# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48308
> > > +OPENSSL_CFLAGS = $(subst -Os,-O2,$(TARGET_CFLAGS))
> > > +else
> > >  OPENSSL_CFLAGS = $(TARGET_CFLAGS)
> > > +endif
> > 
> > Will this work for external and ct-ng toolchains?
> > 
> > baruch
> 
> As long as you set BR2_GCC_VERSION_4_6_X manually...

But BR2_GCC_VERSION_4_6_X is only available when selecting internal 
toolchains. See toolchain/toolchain-buildroot/Config.in.

Doesn't the patch from r183512 fix this bug?

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2012-03-01 18:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-29 23:27 [Buildroot] [PATCH 1/2] openssl: Fix build on ARM with GCC 4.6.x Ismael Luceno
2012-02-29 23:27 ` [Buildroot] [PATCH 2/2] openssl: Add -march and -mcpu flags Ismael Luceno
2012-03-01  5:37 ` [Buildroot] [PATCH 1/2] openssl: Fix build on ARM with GCC 4.6.x Baruch Siach
2012-03-01  7:32   ` Thomas Petazzoni
2012-03-01 17:32   ` Ismael Luceno
2012-03-01 18:10     ` Baruch Siach [this message]
2012-03-03 23:13       ` Ismael Luceno
2012-03-05  5:19         ` Baruch Siach
2012-03-05  6:45           ` Ismael Luceno
2012-03-06 15:21           ` Gustavo Zacarias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120301181031.GA3915@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox