On Tuesday 29 May 2007 10:51, didier deshommes wrote:
> The problem doesn't seem to be with libtermcap or curses. It's a flag
> problem. When compiling libsingular, the "--shared flag" has to be
> passed to gcc, instead of the default "-export-dynamic". For that, the
> Makefile in Singular/Makefile has to have a secial section for
> nexentaos as follows:
> {{{
> ifeq ($(SINGUNAME),ix86-nexentaos)
> SO_SUFFIX = so
> LIBSINGULAR_FLAGS = --shared
> LIBSINGULAR_LIBS = -lsingfac -lsingcf -lntl -lreadline -lgmp
> -lomalloc_ndebug endif
> }}}
>
> And for singular to find ix86-nexentaos, singuname.sh has to have the
> following: {{{
> elif (echo $uname_a | $egrep "SunOS" >$devnull)
>     then
>         # NexentaOS ###############
>         if (echo $uname_a | $egrep "NexentaOS" > $devnull)
>             then
>                #echo "----------------------------------------------------"
>                echo ${prefix}-nexentaos
>                #echo "----------------------------------------------------"
>                #exit 0
>         else
>             echo ix86-SunOS
>             #exit 0
>         fi
>         exit 0
> }}}
>
> Problem is, I don't know how to tell the make file Singular/Makefile
> that "--shared" has to be passed to gcc for nexentaos. I could just
> stick the first fragment showed above, but Singular/Makefile is
> generated dynamically. How do I stick this piece of code in
> Singular/Makefile dynamically?

Hi, just stick it into Makefile.in. This is the source for the Makefile.

Martin

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to