<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Jonathan,</p>
<p><br>
</p>
<p>I manage to configure and build by specifying were the libraries are by using the -L option.</p>
<p><br>
</p>
<p>Thank you very much!,</p>
<p>Kyriakos </p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jonathan Roelofs <jonathan@codesourcery.com><br>
<b>Sent:</b> 21 November 2017 17:20:56<br>
<b>To:</b> Kyriakos Georgiou; cfe-dev@lists.llvm.org<br>
<b>Subject:</b> Re: [cfe-dev] How to configure clang to use arm-none-eabi linker</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p><br>
</p>
<br>
<div class="x_moz-cite-prefix">On 11/21/17 10:16 AM, Kyriakos Georgiou wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Here it is:</p>
<p><br>
</p>
<div>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 <br>
</div>
</div>
</blockquote>
<br>
And where do your -lc / -lm live? I don't see a `--sysroot=`.<br>
<br>
<br>
Jon<br>
<br>
--
<pre class="x_moz-signature" cols="72">Jon Roelofs
<a class="x_moz-txt-link-abbreviated" href="mailto:jonathan@codesourcery.com">jonathan@codesourcery.com</a>
CodeSourcery / Mentor Embedded / Siemens</pre>
</div>
</body>
</html>