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

Baruch Siach baruch at tkos.co.il
Thu Mar 1 05:37:27 UTC 2012


Hi Ismael,

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

-- 
     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