[cfe-dev] How to configure clang to use arm-none-eabi linker
Kyriakos Georgiou via cfe-dev
cfe-dev at lists.llvm.org
Thu Nov 23 03:43:17 PST 2017
Hi Jonathan,
I manage to configure and build by specifying were the libraries are by using the -L option.
Thank you very much!,
Kyriakos
________________________________
From: Jonathan Roelofs <jonathan at codesourcery.com>
Sent: 21 November 2017 17:20:56
To: Kyriakos Georgiou; cfe-dev at lists.llvm.org
Subject: Re: [cfe-dev] How to configure clang to use arm-none-eabi linker
On 11/21/17 10:16 AM, Kyriakos Georgiou wrote:
Here it is:
clang -v -fuse-ld=/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/bin/ld -target arm-none-eabi -isystem /usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include/ --static -mthumb -mcpu=cortex-m3 -D__USE_LPCOPEN -D__CODE_RED -D__REDLIB__ -DCHIP_LPC175X_6X -DCORE_M3 -ffunction-sections -fdata-sections /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/crp.c /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/custom_clocking.c -nostdlib -L/home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x -L/usr/local/lpcxpresso_8.2.2_650/lpcxpresso/tools/arm-none-eabi/include -llpc_chip_175x_6x -T /home/kg8280/work/PapersOnProgress/RAC/beebs-lpc1115_hardware_llvm5.0/config/arm/chips/lpc175x_6x/standalone.ld -Wl,--gc-sections -Wl,--start-group -lc -lm -Wl,--end-group conftest.c
And where do your -lc / -lm live? I don't see a `--sysroot=`.
Jon
--
Jon Roelofs
jonathan at codesourcery.com<mailto:jonathan at codesourcery.com>
CodeSourcery / Mentor Embedded / Siemens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20171123/a7c2be44/attachment.html>
More information about the cfe-dev
mailing list