<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 5 July 2016 at 14:10, Daniel. <span dir="ltr"><<a href="mailto:danielhilst@gmail.com" target="_blank">danielhilst@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":29" class="a3s aXjCH m155bb2eaa0dbd07e">I faced problems with symbols being droped if -l option is passed<br>
after -Wl,--as-needed. To circumvent this I changed my Makefiles to<br>
add link options prior $(LDFLAGS) expansion.<br></div></blockquote></div><br>Note that --as-needed only applies to links specified after the option itself, so changing the order to be -lfoo -lbar --as-needed means that as-needed isn't being used and can just be removed.</div><div class="gmail_extra"><br></div><div class="gmail_extra">(or your link ordering fixed)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>