On Thu, May 12, 2011 at 11:13 AM, AKS <aungk...@gmail.com> wrote:
> Hi Ramana
>
> I thought I have tried
>
> ./configure xxxxx CFLAGS="-marm" after sending the email below.

Note that if you really typed './configure xxxxx CFLAGS="-marm"' it won't work.

CFLAGS needs to be set in the environment, and environment assignments
have to go at the start of the command:

CFLAGS=-marm ./configure xxxxx

This may work for you, but as Peter points out, packages' build
scripts tend to clobber/ignore the default CFLAGS in many places, so
the only really robust way to get the desired effect is to rebuild the
toolchain with different defaults.  It just depends on how well
behaved your package is.

If you're running on hardware that doesn't support support Thumb-2,
you really do need to rebuild the toolchain because compiler support
libraries such as libgcc still contain Thumb-2 instructions even if
you invoke the compiler with -marm.

Cheers
---Dave

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to