#9343: Upgrade PARI to svn snapshot 12577 - a pre-release of PARI 2.4.3.
---------------------------------------------------------------------------------------------------------------------------+
   Reporter:  was                                                               
                                           |       Owner:  jdemeyer       
       Type:  enhancement                                                       
                                           |      Status:  positive_review
   Priority:  major                                                             
                                           |   Milestone:  sage-4.6       
  Component:  packages                                                          
                                           |    Keywords:                 
     Author:  Robert Bradshaw, John Cremona, Jeroen Demeyer, William Stein, 
David Kirkby                                   |    Upstream:  N/A            
   Reviewer:  Robert Bradshaw, John Cremona, Jeroen Demeyer, William Stein, 
David Kirkby, François Bissey, Leif Leonhardy  |      Merged:                 
Work_issues:                                                                    
                                           |  
---------------------------------------------------------------------------------------------------------------------------+

Comment(by leif):

 Replying to [comment:253 leif]:
 > Perhaps add {{{-fno-common}}} to {{{DLCFLAGS}}} in
 {{{config/get_dlcflags}}} if {{{$osname}}} is {{{darwin}}}.
 >
 > Just a guess, I don't play with apples.

 I'm pretty sure this will fix it. In PARI 2.3.x, we patched
 {{{get_dlcflags}}}:
 {{{
 #!sh
 _dl_list="DLCFLAGS"
 if test -n "$__gnuc__"; then
   # Some architectures need -fPIC for building dynamic lib
   # *-i?86|*-sparc*|*-powerpc|*-s390|*-mips) DLCFLAGS=
   case "$osname-$arch" in
     *-hppa|*-ia64|*-alpha|*-arm|*-m68k|*linux-ppc) DLCFLAGS=-fPIC ;;
     *-x86_64|*-sparc*|*-amd64) case "$sizeof_long" in
               8) DLCFLAGS=-fPIC;;
               esac;;
     darwin-*) DLCFLAGS=-fno-common;;
   esac
 else
   case "$osname-$arch" in
     hpux-*) DLCFLAGS=+z;;
     solaris-sparc*) case "$sizeof_long" in
               8) DLCFLAGS=-KPIC;; # assume sun cc
               esac;;
   esac
 fi

 echo "C compiler is          $CC $CFLAGS $DLCFLAGS"
 }}}

 (Note the {{{darwin-*}}}. A number of other changes has been dropped...)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9343#comment:254>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to