leif wrote:
leif wrote:
Volker Braun wrote:
It builds fine on bsd with 10.6. Maybe you need to update your XCode?

I guess his libtool in PATH is simply not Apple's...

So presumably an upstream bug.

P.S.:  From Singular's spkg-install:

if [ "$UNAME" = "Darwin" ]; then
     # Singular needs $LD set to "libtool", not "ld" on Darwin.
     # If we unset it, Singular will figure it out correctly.
     unset LD
fi

So we'd have to change the "figures it out correctly"... ;-)

Yep, it doesn't "figure it out", it hardcodes 'libtool' on Darwin:

        ix86Mac-darwin)
          AC_CHECK_LIB(dl, dlopen)
          if test "$ac_cv_lib_dl_dlopen" = yes; then
                LD_DYN_FLAGS1="-dynamic"
                LD_DYN_FLAGS2="-ldl"
                SFLAGS="-fpic -DPIC"
SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup"
                if test "${LD+set}" != set; then
                  LD=libtool
                fi
                ac_lib_dl=yes
          fi
        ;;
        x86_64Mac-darwin)
          AC_CHECK_LIB(dl, dlopen)
           if test "$ac_cv_lib_dl_dlopen" = yes; then
                LD_DYN_FLAGS1="-dynamic"
                LD_DYN_FLAGS2="-ldl"
                SFLAGS="-fpic -DPIC"
SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup"
                 if test "${LD+set}" != set; then
                  LD=libtool
                 fi
                ac_lib_dl=yes
          fi
        ;;

... but only in singular-3.1.6.p1/src/latest/Singular/configure.in.


So I'd say blindly using 'libtool' (and assuming it is Apple's) is an upstream bug.


-leif

Still wonder why Singular (meanwhile) directly uses $LD exactly once;
everything else gets linked with GCC (g++ that is).


-leif

P.P.S.:  Haven't found anything in the (configure) logs indicating what
"linker" Singular decided to use, nor any checks related to that.

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to