From: Wolfgang Denk Date: Fri, 16 May 2014 13:55:50 +0200 Subject: [U-Boot] [PATCH v3] examples: select libgcc for non-default architecture In-Reply-To: <1400230457-11075-1-git-send-email-abrodkin@synopsys.com> References: <1400230457-11075-1-git-send-email-abrodkin@synopsys.com> Message-ID: <20140516115550.0A2A9380461@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alexey Brodkin, In message <1400230457-11075-1-git-send-email-abrodkin@synopsys.com> you wrote: > 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 > > Cc: Masahiro Yamada > Cc: Tom Rini > Cc: Wolfgang Denx > > --- > In v3 we export PLATFORM_LIBGCC from the main Makefile and use it for examples Thanks! Acked-by: WOlfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Pull the wool over your own eyes!" - J.R. "Bob" Dobbs