#11359: ECL does not fully recover from relocation
----------------------+-----------------------------------------------------
Reporter: nbruin | Owner: GeorgSWeber
Type: defect | Status: new
Priority: minor | Milestone: sage-4.7.1
Component: build | Keywords: ecl relocation
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
----------------------+-----------------------------------------------------
Comment(by nbruin):
The dirty {{{c::*cc-flags*}}} and {{{c::*ld-flags}}} are our own fault. In
the ECL spkg-install we have the lines:
{{{
CPPFLAGS="$CPPFLAGS -I$SAGE_LOCAL/include"
LDFLAGS="$LDFLAGS -L$SAGE_LOCAL/lib"
}}}
but we are adding paths there, not flags! It needs the include path to
find the boehm-gc headers, but our library search paths should already be
set up. Can we instead just do
{{{
C_INCLUDE_PATH="$SAGE_LOCAL/include"
export C_INCLUDE_PATH
}}}
If the library really needs to be mentioned here, perhaps also a
{{{
LIBRARY_PATH="$SAGE_LOCAL/lib"
export LIBRARY_PATH
}}}
but I think we can leave that one out. With this I get an ECL where we
obtain
{{{
> (require 'cmp)
> c::*cc-flags*
" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fPIC -Dlinux"
> c::*ld-flags*
" -lecl -lgmp -lgc -ldl -lm "
}}}
so no paths in the flags variables anymore! That just leaves figuring out
where best to change the values of the *ecl-...-directory* variables.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11359#comment:3>
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.