On 11/19/2012 03:50 PM, Wolfgang Denk wrote: > Dear Laurentiu, > > In message <[email protected]> you wrote: >> >>>> -> source /opt/poky-test/environment-setup-armv5te-poky-linux-gnueabi >>>> -> ${TARGET_PREFIX}gcc -v -o /tmp/x /tmp/x.c >> >> Just do: $CC -o /tmp/x /tmp/x.c >> >> It should work. >> >> echo $CC >> arm-poky-linux-gnueabi-gcc -march=armv5te -marm -mthumb-interwork >> -mtune=arm926ej-s --sysroot=/tests/sdk/sysroots/armv5te-poky-linux-gnueabi > > Argh... Isn't it somewhat ... unconventional (to avoid stonger words) > to encode compiler options in a variable which is supposed to define > the "Program for compiling C programs" ? It is unconventional, I admit. Unfortunately, it's not clear to me why this was done in the first place. I've just read the commit message for these changes and it didn't make it clearer. Maybe Mark, who made these changes, can give us a better answer.
> > Should such options not go to one of the *FLAGS variables instead? I personally don't see any reason why they shouldn't. Thanks, Laurentiu > > Best regards, > > Wolfgang Denk > _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
