#8178: zn_poly fails to build in Open Solaris x64 as 64 bit even if SAGE64=yes
--------------------------+-------------------------------------------------
Reporter: jsp | Owner: drkirkby
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.3.2
Component: porting | Keywords:
Author: Jaap Spies | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
Changes (by jsp):
* status: needs_work => needs_review
Comment:
One more comment. Look at this from the spkg-install file:
{{{
if [ "x$SAGE64" = xyes ]; then
echo "64 bit build"
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
}}}
You see LDFAGS is empty except when SAGE64=yes. For now Darwin and SunOS
x64 64 bit.
Only in this case the patches/makemakefile.py is copied. The darwin case
is resolved first (even without using the LDFLAGS :) ), see the makefile.
Remains the building of the .so file in our case and that definitely needs
the
LDFLAGS set to -m64.
If you don't accept this reasoning, I rest my case.
Cheers,
Jaap
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8178#comment:8>
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.