From a2ef6647ae15ac8df94c133b13527422a53c440d Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Sat, 15 Jan 2011 13:33:28 +0900 Subject: [PATCH] Copy -mcpu=* & -march=* options from CFLAGS to LDFLAGS. * builds/unix/configure.raw: Consider recent gcc-standard flags to specify architecture in CFLAGS & LDFLAGS harmonization. Requested by Savannah bug #32114, to support multilib feature of BuildRoot SDK correctly. --- ChangeLog | 9 +++++++++ builds/unix/configure.raw | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0d5405994..c3dff2805 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-01-15 suzuki toshiya + + Copy -mcpu=* & -march=* options from CFLAGS to LDFLAGS. + + * builds/unix/configure.raw: Consider recent gcc-standard + flags to specify architecture in CFLAGS & LDFLAGS + harmonization. Requested by Savannah bug #32114, to + support multilib feature of BuildRoot SDK correctly. + 2011-01-15 suzuki toshiya Fix off-by-one bug in CFLAGS & LDFLAGS harmonizer. diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw index a22183f37..a58d20c4b 100644 --- a/builds/unix/configure.raw +++ b/builds/unix/configure.raw @@ -267,7 +267,7 @@ do fi shift 1 ;; - -m32|-m64) # options taking no argument + -m32|-m64|-march=*|-mcpu=*) # options taking no argument AC_MSG_RESULT([whether CFLAGS and LDFLAGS share ${c}]) if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null then