examples: select libgcc for non-default architecture
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Fri, 16 May 2014 08:54:17 +0000 (12:54 +0400)
committerTom Rini <trini@ti.com>
Fri, 23 May 2014 20:51:26 +0000 (16:51 -0400)
commite75e73dd5f280b91f5bfc0a76a0fd09b6eba1c66
tree07391a81f1a7bfab88c1f4e9f2a31eeb81ee9448
parent1dd6e3c2dd8a136d5798a3ebda33032f18177612
examples: select libgcc for non-default architecture

In case of multilib-enabled toolchains if default architecture differ from
the one examples are being built for linker will fail to link example object
files with libgcc of another (non-compatible) architecture.

Interesting enough for years in main Makefile we used CFLAGS/c_flags for this
but not for examples.

So fixing it now.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denx <wd@denx.de>
Acked-by: WOlfgang Denk <wd@denx.de>
Acked-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Makefile
examples/standalone/Makefile