#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
Component: solaris | Keywords: GNUism linker flags soname
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Changes (by drkirkby):
* status: new => assigned
Comment:
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/
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6443#comment:1>
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
-~----------~----~----~----~------~----~------~--~---