From 45659032a76d3f43ae18f9e36a5c5f493ca4d488 Mon Sep 17 00:00:00 2001 From: Nagy Karoly Gabriel Date: Wed, 31 Oct 2012 11:02:37 +0100 Subject: [PATCH] dietlibc: new gcc>4.7 with -O2 or above will try to optimise some string functions, this fails with dietlib so we disable with -fno-optimize-strlen --- base/dietlibc/dietlibc.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/dietlibc/dietlibc.conf b/base/dietlibc/dietlibc.conf index f24e905d4..2db50f0fd 100644 --- a/base/dietlibc/dietlibc.conf +++ b/base/dietlibc/dietlibc.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../dietlibc/dietlibc.conf -# Copyright (C) 2007 - 2009 The OpenSDE Project +# Copyright (C) 2007 - 2012 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -107,6 +107,7 @@ fi var_append makeopt ' ' prefix=/$prefix var_append makeinstopt ' ' prefix=/$prefix var_append makeopt ' ' LIBDIR=$libdir +var_append makeopt ' ' "CFLAGS='-fno-optimize-strlen'" var_append makeinstopt ' ' LIBDIR=$libdir var_append makeinstopt ' ' BINDIR=$bindir var_append makeinstopt ' ' MAN1DIR=$mandir/man1