<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 7:00 AM, Sumanth Gundapaneni <span dir="ltr"><<a href="mailto:sgundapa@codeaurora.org" target="_blank">sgundapa@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I reacted as per my case.  You need CFLAGS in order to what linker you might be using.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">In case of clang, you can use “-fuse-ld” to control the invocation of linker.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">In my opinion, it is not necessary to carry forward LDFLAGS unless you want to control specific parts of the linker.</span></p></div></div></blockquote><div><br></div><div>Unless I'm mistaken typically LDFLAGS are passed like this. (I think you are mistaken)</div><div><br></div><div>${COMPILER} ${LDFLAGS} </div><div><br></div><div>ld ${LDFLAGS} # It doesn't mean this isn't also possible</div><div><br></div><div>Regardless if you're dealing with a cross compiler or whatever weird CFLAGS you have to pass. This is a linker issue and LDFLAGS are designed to deal precisely with that.</div><div><br></div></div></div></div>