<div>Ok, it seems that the problem is in the link flags. I first realized that Sun's compiler did not have the problem<br clear="all"></div><div><br></div><div>-bash-4.0$ cc -dy -G -z text -o foo.so ../opensolaris/build/libeclgmp.a -Bdynamic -lc</div>

<div><br></div><div>and then tried adding -shared to the GCC flags</div><div><br></div><div>-bash-4.0$ gcc -shared -dy -G -Wl,-ztext -o foo.so ../opensolaris/build/libeclgmp.a -Bdynamic -lc</div><div><br></div><div>So it does not suffice the standard shared-library linking flags for Solaris (-dy -G), one also has to add GCC's own flag (-shared) to let it link in a different C runtime.</div>

<div><br></div><div>Juanjo</div><div><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>


</div>