On 11 February 2012 07:36, Julien Puydt <julien.pu...@laposte.net> wrote:
> Le vendredi 10 février, John Cremona a écrit:
>> Specifically: in the Makefile the option --as-needed is passed from
>> gcc to ld
>
> That switch is written as-is in the Makefile? Or does it come from
> elsewhere?
>i

The Makefiles in the four subdirectories (into which the source is
divided) contain the (new) lines
SONAME=$(LIBBASE).so.0
where LIBBASE is something different for each subdirectory.  Then in
the top-level Makefile, the line

SO_OPTS = -fPIC --shared

is changed to

SO_OPTS = -fPIC --shared -Wl,--as-needed

and in the top-level Makefile.dynamic,

$(SO_LIBNAME): $(A_LIBNAME)             
                $(CXX) $(SO_OPTS)  $(A_LIBNAME) $(OBJS) -o $(SO_LIBNAME)
$(NTLLFLAGS) $(LIBFLAGS)

was changed to

(SO_LIBNAME): $(A_LIBNAME)

        $(CXX) $(SO_OPTS) -Wl,-soname,$(SONAME) $(A_LIBNAME) $(OBJS) -o
$(SO_LIBNAME) $(NTLLFLAGS) $(LIBFLAGS)

These changes were made by the Debian guy, but apparently cause the
build to fail on the OpenSolaris machine Hawk.  As far as I am
concerned everything worked before these changes and after (on my
linux machines) but if someone who sounds as if he knows what he is
talking about says "this is the right way to do it" I tend to believe
them provided that the change still works for me.

At the time this change was made to eclib "upstream" (in June 2011) I
did ask David Kirby whether this looked ok for Solaris, but he did not
reply, and it is only since December that I have trying to get the
eclib version included in Sage upgraded -- not for this technical
change of course, but for genuine reasons.

John


> Snark on #sagemath
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to 
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to