<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">Any plan to support static build?<br><div></div><div id="divNeteaseMailCard"></div><br>At 2014-12-09 22:41:27, "spring_wind" <spring_wind@yeah.net> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>I found this problem when I try to build beignet in static way. I changed CMakeList.txt and libcl.a, libgbeinterp.a and libgbe.a generated succcessfully, but these static libraries will not work if you try to link them to your program.</div><div><br></div><div>The reason I found is in src/cl_driver.cpp in which an unused static variable was declared, but it will be optimized, so intel driver function pointer will not be inittialized.</div><div><br></div><div>Also, the problem exists for compiler callback init.</div><div><br></div><div>I try to offer patches, but I found no place to call these callback functions. </div><div><br></div><div><br></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"><span title="neteasefooter"><span id="netease_mail_footer"><a href="#" target="_blank"></a></span></span>
</span></span></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"><span title="neteasefooter"><span id="netease_mail_footer"><a href="#" target="_blank"></a></span></span>
</span></span>