One question...the patch you sent me>..I don't know which file I have to apply it to... I couldnt find the gcc_defaults.mak


2013/10/9 Javier Fileiv <javier.fileiv@gmail.com>
Sorry Marc, I thought we were not replying to each other on the forum.

Thanks, I will try to do what you just told me.

Bye!


2013/10/6 Marc Kleine-Budde <mkl@pengutronix.de>
Hello Javier,

Please don't top-post and please keep the mailinglist on CC.

On 10/06/2013 10:56 AM, Javier Fileiv wrote:
> What does it mean?? Isnt there any work around?

That means they don't care about cross compiling, so it doesn't work.

Workaround - Maybe. It might work if you apply the following patch
and add

    <YOUR_NEW_PACKGE>_MAKE_OPT := $(CROSS_ENV_CC)

to rules/<your_new_pacakge>.make

Marc

diff --git a/config/compilers/gcc_defaults.mak b/config/compilers/gcc_defaults.mak
index a885266..7240ab3 100644
--- a/config/compilers/gcc_defaults.mak
+++ b/config/compilers/gcc_defaults.mak
@@ -38,8 +38,8 @@
  ##                                                                       ##
  ###########################################################################

-CC=gcc
-CXX=gcc
+CC=$(CC)
+CXX=$(CC)
 ifeq ($(OSTYPE),Darwin)
 CXX=g++
 endif


--
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |