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.
This commit is contained in:
suzuki toshiya 2011-01-15 13:33:28 +09:00
parent c68a82d8fc
commit a2ef6647ae
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2011-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
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 <mpsuzuki@hiroshima-u.ac.jp>
Fix off-by-one bug in CFLAGS & LDFLAGS harmonizer.

View File

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