On 21 December 2010 20:19, Juan Jose Garcia-Ripoll <juanjose.garciarip...@googlemail.com> wrote: > Ok, it seems that the problem is in the link flags. I first realized that > Sun's compiler did not have the problem > > -bash-4.0$ cc -dy -G -z text -o foo.so ../opensolaris/build/libeclgmp.a > -Bdynamic -lc > and then tried adding -shared to the GCC flags > -bash-4.0$ gcc -shared -dy -G -Wl,-ztext -o foo.so > ../opensolaris/build/libeclgmp.a -Bdynamic -lc > 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. > Juanjo
Removing the compiler options -G -Bdynamic and replacing with shared -Wl,-soname,libcliquer.so solved another text relocation issue in Sage http://trac.sagemath.org/sage_trac/ticket/9871 However, in that case, someone who did not know what they were doing converted a executable to a shared library, so I would not put too much weight into this. Dave ------------------------------------------------------------------------------ Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew _______________________________________________ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list