[Buildroot] [PATCH 1/2] openssl: Fix build on ARM with GCC 4.6.x

Baruch Siach baruch at tkos.co.il
Thu Mar 1 18:10:32 UTC 2012


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 at tkos.co.il> wrote:
> > On Wed, Feb 29, 2012 at 09:27:57PM -0200, Ismael Luceno wrote:
> > > 
> > > Signed-off-by: Ismael Luceno <ismael.luceno at 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 -


More information about the buildroot mailing list