#7128: zlib-1.2.3.p4 always builds 32-bit binaries on Solaris.
----------------------+-----------------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.3
Component: porting | Keywords:
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
An inspection of spkg-install for zlib shows that the -m64 flag is only
added on OS X, and not on Solaris.
{{{
# The -fPIC is needed otherwise builing libpng fails later
# (at least on a Debian 64-bit opteron).
if [ `uname` = "Darwin" -a "$SAGE64" = "yes" ]; then
CFLAGS=" -m64 $CFLAGS -fPIC -g -I\"$SAGE_LOCAL/include\""
cp ../patches/configure-OSX-64 configure
else
CFLAGS="$CFLAGS -fPIC -g -I\"$SAGE_LOCAL/include\""
fi
}}}
There are several things wrong with this
* -fPIC is not a universally used flag. The correct flag to use on
Solaris is -KPIC, though -fPIC will be accepted. On other compilers, such
as those on AIX or HP-UX, there is no guarantee that -fPIC is the correct
flag.
* The -m64 flag to build 64-bit code is only used on OS X. It is not used
on Solaris, despite the fact we are supposed to be supporting Solaris. On
some compilers, '''the correct flag to produce 64-bit code is not -m64'''.
IBM's compiler on AIX uses -q64, and HP's on HP-UX uses +DD64.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7128>
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
-~----------~----~----~----~------~----~------~--~---