<div dir="ltr">LGTM</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 1:00 PM, Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ELF linkers by default allow shared libraries to contain undefined<br>
references and it is up to the dynamic linker to look for them.<br>
<br>
On COFF and MachO, that is not the case.<br>
<br>
This creates a situation where a .so might build on an ELF system, but<br>
the build of the corresponding .dylib or .dll will fail.<br>
<br>
The attached patch changes the cmake build to use -Wl,-z,defs when<br>
linking and updates the dependencies so that -DBUILD_SHARED_LIBS=ON<br>
build still works.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>