#6443: [with patch, needs review] A GNUism in zn_poly-0.9.p0 causes linking
problems wiith Sun's linker
----------------------+-----------------------------------------------------
Reporter: drkirkby | Owner: drkirkby
Type: defect | Status: assigned
Priority: major | Milestone: sage-4.1.1
Component: solaris | Keywords: GNUism linker flags soname
Reviewer: | Author: David Kirkby
Merged: |
----------------------+-----------------------------------------------------
Comment(by mvngu):
Replying to [comment:1 drkirkby]:
> It was very easily fixed, with just a bit of code to change a flag is
the operating system is Solaris and the linker is Suns. There was already
code to apply a patch for OS X, do I just added to that, so spkg-install
now has:
>
> {{{
> if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then
> echo "64 bit MacIntel"
> CFLAGS="-O3 -g -m64 -fPIC -L."; export CFLAGS
> LDFLAGS="-m64 "; export LDFLAGS
> cp patches/makemakefile.py src/makemakefile.py
> elif [ `uname` = "SunOS" -a "`ld --version 2>&1 | grep GNU`" = "" ];
then
> # Change -soname to -h if the Sun linker is used.
> sed 's/-soname/-h/g' src/makemakefile.py > /tmp/makemakefile.py.$$
> mv /tmp/makemakefile.py.$$ src/makemakefile.py
> CFLAGS="-fPIC -O3 -L."; export CFLAGS
> LDFLAGS=""; export LDFLAGS
> else
> CFLAGS="-fPIC -O3 -L."; export CFLAGS
> LDFLAGS=""; export LDFLAGS
> fi
> }}}
>
> http://sage.math.washington.edu/home/kirkby/Solaris-fixes/zn_poly/
The spkg at that address has some junks in it. I removed them, checked in
changes in David Kirkby's name, and have uploaded an updated version at
http://sage.math.washington.edu/home/mvngu/patch/zn_poly-0.9.p1.spkg
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6443#comment:6>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---